You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@opennlp.apache.org by Damiano Porta <da...@gmail.com> on 2016/10/24 21:12:57 UTC
Deprecated NameFinderME.train
Hello,
looking at the test code of NameFinderME i found the deprecated *train*
method (same thing on the official documentation).
NameFinderME.train("en", "PERSON", sampleStream,
TrainingParameters.defaultParams(), (byte[]) null, Collections.<String,
Object>emptyMap());
that should be replaced with
NameFinderME.train(String languageCode, String type,
ObjectStream<NameSample> samples, TrainingParameters trainParams,
TokenNameFinderFactory factory)
Could someone give me an example to understand how to use the
TokenNameFinderFactory?
Thank you in advance!
Damiano