From 2e9780309217f3ededa02a2f3e261136f50edd85 Mon Sep 17 00:00:00 2001 From: DarthMax Date: Mon, 9 May 2016 17:49:47 +0200 Subject: [PATCH] Update README --- README.md | 38 ++++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 18 deletions(-) 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 + ```