-
Notifications
You must be signed in to change notification settings - Fork 22
Home
Yashwanth Krishnan edited this page Sep 19, 2016
·
1 revision
Welcome to the jtopia wiki!
Example Usage
Configuration.setTaggerType("default");// "default" for lexicon POS tagger and "openNLP" for openNLP POS tagger
Configuration.setSingleStrength(3);
Configuration.setNoLimitStrength(2);
// If tagger type is "default" , then set model location as "model/default/english-lexicon.txt"
// If tagger type is "openNLP" , then set model location as "model/openNLP/en-pos-maxent.bin"
Configuration.setModelFileLocation("model/default/english-lexicon.txt");
TermsExtractor termExtractor = new TermsExtractor();
TermDocument termDocument = new TermDocument();
termDocument = termExtractor.extractTerms("input text");
System.out.println(termDocument.getFinalFilteredTerms());
Build using Maven
mvn clean install