Skip to content
Sreejith.S edited this page Aug 21, 2014 · 8 revisions

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
Clone this wiki locally