"Importing Stanford CoreNLP classes in Groovy ExecuteScript"

phpdevelopers1phpdevelopers1 Member Posts: 1 Contributor I
edited June 7 in Help
I'm trying to utilize http://nlp.stanford.edu/software/corenlp.shtml Java library into my Groovy code in ExecuteScript operator. I'm doing

import edu.stanford.nlp.*;

and then

StanfordCoreNLP pipeline = new StanfordCoreNLP(props);

When I run the whole process there is an error that it can't locate StanfordCoreNLP class. "Unable to resolve class StandfordCoreNLP @ line ...". I tried:
  • adding the Stanford library to my system-wide CLASSPATH , so:

    echo %CLASSPATH%
    .;c:\downloads\stanford-corenlp-full-2014-01-04;c:\downloads\stanford-corenlp-full-2014-01-04\stanford-corenlp-3.3.1.jar
  • copying all the *.jars from c:\downloads\stanford-corenlp-full-2014-01-04 into %Program Files%\RapidMiner\RapiMiner Studio\lib
OS: Win7 x64, RM 6.0.0003

Thanks in advance for your help!


Tagged:
Sign In or Register to comment.