by saryant · 13y ago · 0 comments
It's pretty straightforward to use their library to read a document and output an XML file containing NER data (and lots of other fun stuff).
For instance, from the sentence:
> World War II, or the Second World War (often abbreviated as WWII or WW2), was a global military conflict lasting from 1939 to 1945, which involved most of the world's nations, including all of the great powers, eventually forming two opposing military alliances, the Allies and Axis.
Stanford NLP NER will output the following entities:
"World War II" - MISC "Second World War" - MISC "1939 to 1945" - DATE - NORMALIZED 1939/1945 "Axis" - MISC
You can view the output of Stanford's CoreNLP library (NER + dependency grammar + coreference resolution + some other stuff) for the Wikipedia article on World War II in my github repo:
https://raw.github.com/ryantanner/thesis/master/data/ww2samp...
edit: I should add that the real fun (for me) came from combining NER with dependency grammars and coreference resolution. It makes it very easy to turn Stanford NLP's output into a knowledge graph combining a large number of documents.
This is a bit more human friendly.
If you need an example sentence: "Stanford University is located in California. It is a great university."
I also know that Microsoft Research has a demo online of their NLP tools: http://msrsplatdemo.cloudapp.net/ (Silverlight required) I don't think you can download the tools though, but they do offer to provide you with an API token to call their service from their cloud.
Potential conflict of interest: I wrote parts of the CoreNLP visualiser.
Edit: Added example sentence.