Calling Stanford POS Tagger maxentTagger from java program?

Well, when you compile or invoke your program you need to add Stanford's JAR file to your classpath, e.g.

Well, when you compile or invoke your program you need to add Stanford's JAR file to your classpath, e.g. : java -classpath stanford-postagger. Jar MyProgram Then in your code you'll need to import the relevant packages, most things you need seem to be in edu.stanford.nlp.tagger.maxent. Instantiating a new MaxentTagger is well described in the JavaDoc, but I'll repeat some of it here: To create a new tagger: MaxentTagger tagger = new MaxentTagger("models/left3words-wsj-0-18.

Tagger"); To tag a String with this tagger: String taggedString = tagger. TagString("Here's a tagged string.") Additionally you can create and tag sentences using Stanford's NLP tools. Create a sentence by reading a file using a BufferedReader: Sentence sentence = Sentence.

ReadOneSentence(in); // in is a BufferedReader Then tag the sentence as with your tagger: Sentence taggedSentence = tagger. TagSentence(sentence).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions