Skip to content

Commit e553a44

Browse files
committed
updated README with new NER usage
1 parent 29292c5 commit e553a44

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,18 @@ to get its tag. For more information, see the [relevant Javadoc](http://nlp.stan
2727
To tag named entities utilizing standard Stanford NER model:
2828

2929
(use 'corenlp)
30+
(def pipeline (initialize-pipeline))
3031
(def text "The United States of America will be tagged as a location")
31-
(tag-ner text)
32+
(tag-ner pipeline text)
3233

3334
Training your own model [How to Train Your Own Model](https://nlp.stanford.edu/software/crf-faq.html#a)
3435

3536
To tag named entities utilizing custom trained model:
3637

3738
(use 'corenlp)
39+
(def pipeline (initialize-pipeline "path-to-serialized-model"))
3840
(def text "The United States of America will be tagged as a location")
39-
(tag-ner text path-to-serialized-model)
41+
(tag-ner pipeline text)
4042

4143
Utilizing either NER tagging strategy, a map containing the original text, sentences, tokens, and ner tags will be returned.
4244

0 commit comments

Comments
 (0)