Features does not guarantee that the token will be marked as a NE. Its is like saying to the model that in the dictionary the token can be a NE, but of course it will be evaluated with other features. Remember it is machine learning. You can skip the machine learning using a DictionaryNameFinder.
http://opennlp.apache.org/documentation/1.6.0/apidocs/ opennlp-tools/opennlp/tools/namefind/DictionaryNameFinder.html Regards William 2016-08-16 15:50 GMT-03:00 Damiano Porta <damianopo...@gmail.com>: > Hello, > > pardon guys for all these questions but i am trying to study OpenNLP > deeply. > I write a simple code, you can see it here: > https://issues.apache.org/jira/browse/OPENNLP-859?jql=projec > t%20%3D%20OPENNLP > I am trying to understand what the generators are and what is their job. > I know they add features on the tokens list, but what does it mean in > simple words? (just adding simple codes on each token?) because for example > i tried the DictionaryFeatureGenerator with a simple list of names but they > are not recognized when i use the NameFinderME( see the link on jira ) > > How can i read those features after the find() ? > > Thank you so much! > Damiano >