Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
DarthMax committed May 9, 2016
1 parent e4dbb22 commit 2e97803
Showing 1 changed file with 20 additions and 18 deletions.
38 changes: 20 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,35 @@ A simple webservice for the Stanford NER Tagger

1. Clone the repo

```sh
git clone https://github.com/DarthMax/scala-ner-server
cd scala-ner-server
```
```sh
git clone https://github.com/DarthMax/scala-ner-server
cd scala-ner-server
```

2. First Download the German language models from [http://nlp.stanford.edu/software/CRF-NER.shtml](http://nlp.stanford.edu/software/CRF-NER.shtml)

```sh
$ wget http://nlp.stanford.edu/software/stanford-german-2015-10-14-models.jar -P lib/
```
```sh
$ wget http://nlp.stanford.edu/software/stanford-german-2015-10-14-models.jar -P lib/
```


3. Build the JAR
```sh
$ ./sbt
> assembly
```

```sh
$ ./sbt
> assembly
```

4. Run the server

```sh
$ java -jar target/scala-[SCALA-VERSION]/ner-service-[SCALA-VERSION]-0.1.0-SNAPSHOT.jar &
```
```sh
$ java -jar target/scala-[SCALA-VERSION]/ner-service-[SCALA-VERSION]-0.1.0-SNAPSHOT.jar &
```


5. Query
```sh
$ curl -X POST --data "text=Das ist Angela Merkel" localhost:8080
Das ist <I-PER>Angela Merkel</I-PER>
```

```sh
$ curl -X POST --data "text=Das ist Angela Merkel" localhost:8080
Das ist <I-PER>Angela Merkel</I-PER>
```

0 comments on commit 2e97803

Please sign in to comment.