private NLPToolsControllerOpenNLP() throws IOException { POSModel posModel = new POSModel( new FileInputStream(JATEProperties.getInstance().getNLPPath() + "/en-pos-maxent.bin")); _posTagger = new POSTaggerME(posModel); ChunkerModel chunkerModel = new ChunkerModel( new FileInputStream(JATEProperties.getInstance().getNLPPath() + "/en-chunker.bin")); _npChunker = new ChunkerME(chunkerModel); TokenizerModel tokenizerModel = new TokenizerModel( new FileInputStream(JATEProperties.getInstance().getNLPPath() + "/en-token.bin")); _tokenizer = new TokenizerME(tokenizerModel); SentenceModel sentModel = new SentenceModel( new FileInputStream(JATEProperties.getInstance().getNLPPath() + "/en-sent.bin")); _sentDetect = new SentenceDetectorME(sentModel); }
private void init() throws IOException, JWNLException { dict = new JWNLDictionary(JATEProperties.getInstance().getNLPPath() + "/wordnet_dict"); }