I downloaded stanford-corenlp-2012-01-08.tgz from the link you provided. Using 7-zip, I unpacked it and found another compressed file called stanford-corenlp-2012-01-08 and again uncompressed using 7-zip. Content shown below:
Then I created a new Java project in eclipse and created a new lib folder inside this project and placed
- Joda-time.jar
- Stanford-corenlp-2011-12-27-models.jar
- Stanford-corenlp-2012-01-08.jar
- xom.jar
banks in lib. Then set the Java Build Path to these banks.
Next, I created a test class with the main method.
import java.util.Properties; import edu.stanford.nlp.pipeline.StanfordCoreNLP; public class NLP { public static void main(String[] args) { Properties props = new Properties(); props.put("annotators", "tokenize, ssplit, pos, lemma, ner, parse, dcoref"); StanfordCoreNLP coreNLP = new StanfordCoreNLP(props); } }
And finally, launch the application. The result is shown below:
Successful.
Hope this helps you.
source share