Package opennlp.tools.doccat

Examples of opennlp.tools.doccat.DoccatModel.serialize()


    BagOfWordsFeatureGenerator bowfg
      = new BagOfWordsFeatureGenerator();

    DoccatModel model = DocumentCategorizerME.train("en",
        ds, cutoff, iterations, nffg, bowfg); //<co id="tm.train"/>
    model.serialize(new FileOutputStream(modelFile));
   
/*<calloutlist>
<callout arearefs="tm.tok">Create data stream</callout>
<callout arearefs="tm.fg">Set up features generators</callout>
<callout arearefs="tm.train">Train categorizer</callout> 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.