Alternatively, could he pass in String[] tokens with each token having the
pos appended to it? for instance String[]{"bob_nn","went_vv","home_nn"} .
inside the createFeatures method he would then just take the contents of
the array and populate the List...On Jan 30, 2014 8:16 AM, "Jörn Kottmann" <[email protected]> wrote: > Hello, > > the current interface does not support passing in pos tags. > > One option would be to just run the pos tagger inside the feature > generation > of the name finder. > > Would that help you? > > Jörn > > On 01/30/2014 12:47 AM, Zoljargal Munkhjargal wrote: > >> Dear members, >> >> I am trying to setup the OpenNLP NameFinder in a project with >> part-of-speech tag feature. I extended my feature class from >> FeatureGeneratorAdapter<http://opennlp.apache.org/documentation/1.5.2- >> incubating/apidocs/opennlp-tools/opennlp/tools/util/featuregen/ >> FeatureGeneratorAdapter.html> >> class, >> and overrode following method. Unfortunately this method taking just raw >> tokens in parameter. The problem is that how to pass POS tag information >> in >> to this method? >> >> public void createFeatures(List features, String[] tokens, int index, >> String[] previousOutcomes) >> >> >
