I am extremely new to coding including using Eclipse.
Can someone please explain, with examples of code, how to execute ClearNLP functions: Tokenizer and sentence segmenter; Part-of-speech tagger; Dependency parser; Semantic role labeller in Eclipse.
I have already downloaded the .jar files and imported them onto Eclipse:
package test;
import com.clearnlp.run.Version;
public class TestClearNLP {
public static void main(String[] args){
Version.main(args);
}
}
When run, this creates output in the console of:
ClearNLP version 2.0.2
Webpage: clearnlp.com
Owner : Jinho D. Choi
Contact: support@clearnlp.com
This all matches the installation instructions on the ClearNLP website
Now I need to know how to execute each function on Eclipse.
An example, for the Tokenizer you need to execute the code:
java com.clearnlp.run.Tokenizer -i <filepath> [-ie <regex> -oe <string> -if <string> -of <string> -l <language> -twit]
-i <filepath> : input path (required)
-ie <regex> : input file extension (default: .*)
-oe <string> : output file extension (default: tok)
-if <string> : input format (default: raw)
-of <string> : input format (default: line)
-l <language> : language (default: en)
-twit <boolean> : if set, do not tokenize special punctuation used in twitter
How can I transfer the code so it is able to be run on Eclipse?