diff --git a/README.md b/README.md index ebdf119..cc47f13 100644 --- a/README.md +++ b/README.md @@ -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 Angela Merkel -``` + + ```sh + $ curl -X POST --data "text=Das ist Angela Merkel" localhost:8080 + Das ist Angela Merkel + ```