Package opennlp.tools.util.featuregen

Examples of opennlp.tools.util.featuregen.AggregatedFeatureGenerator


  public void trainNameFinderWithCustomFeatures() throws IOException {
    File baseDir = new File("src/test/resources");
    File destDir = new File("target");
   
    //<start id="ne-features"/>   
    AggregatedFeatureGenerator featureGenerators =
      new AggregatedFeatureGenerator( //<co id="co.opennlp.name.createfeat"/>
        new WindowFeatureGenerator(
          new TokenFeatureGenerator(), 2, 2), //<co id="co.opennlp.name.tokenfeat"/>
        new WindowFeatureGenerator(
          new TokenClassFeatureGenerator(), 2, 2), //<co id="co.opennlp.name.tokenclassfeat"/>
        new PreviousMapFeatureGenerator() //<co id="co.opennlp.name.prevfeat"/>
View Full Code Here

TOP

Related Classes of opennlp.tools.util.featuregen.AggregatedFeatureGenerator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.