use of org.elasticsearch.service.opennlp.models.PooledTokenNameFinderModel in project elasticsearch-opennlp-plugin by spinscale.
the class SimpleNlpTest method loadFinders.
public void loadFinders() throws Exception {
finders = new NameFinderME[names.length];
StopWatch sw = new StopWatch("Loading models").start();
for (int mi = 0; mi < names.length; mi++) {
finders[mi] = new NameFinderME(new PooledTokenNameFinderModel(new FileInputStream(new File("src/test/resources/models", "en-ner-" + names[mi] + ".bin"))));
}
sw.stop();
}
Aggregations