opennlp.tools.postag
Class POSTaggerTrainer

java.lang.Object
  extended by opennlp.tools.postag.POSTaggerTrainer

Deprecated. Use POSTaggerME.train(String, ObjectStream, opennlp.tools.util.model.ModelType, POSDictionary, Dictionary, int, int) instead.

@Deprecated
public class POSTaggerTrainer
extends Object


Constructor Summary
POSTaggerTrainer()
          Deprecated.  
 
Method Summary
static void main(String[] args)
          Deprecated. 
static void test(opennlp.model.AbstractModel model)
          Deprecated. 
static POSModel train(String languageCode, ObjectStream<POSSample> samples, POSDictionary tagDictionary, Dictionary ngramDictionary, int cutoff, int iterations)
          Deprecated.  
static void trainMaxentModel(opennlp.model.EventStream evc, File modelFile)
          Deprecated. 
static opennlp.model.AbstractModel trainMaxentModel(opennlp.model.EventStream es, int iterations, int cut)
          Deprecated. 
static opennlp.model.AbstractModel trainPerceptronModel(opennlp.model.EventStream es, int iterations, int cut)
          Deprecated.  
static opennlp.model.AbstractModel trainPerceptronModel(opennlp.model.EventStream es, int iterations, int cut, boolean useAverage)
          Deprecated.  
static opennlp.model.AbstractModel trainPerceptronSequenceModel(opennlp.model.SequenceStream ss, int iterations, int cut, boolean useAverage)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

POSTaggerTrainer

public POSTaggerTrainer()
Deprecated. 
Method Detail

train

public static POSModel train(String languageCode,
                             ObjectStream<POSSample> samples,
                             POSDictionary tagDictionary,
                             Dictionary ngramDictionary,
                             int cutoff,
                             int iterations)
                      throws IOException
Deprecated. 
Parameters:
samples -
tagDictionary -
ngramDictionary -
beamSize -
cutoff -
Returns:
Throws:
IOException - its throws if an IOException is thrown during IO operations on a temp file which is created during training occur.

trainMaxentModel

@Deprecated
public static void trainMaxentModel(opennlp.model.EventStream evc,
                                               File modelFile)
                             throws IOException
Deprecated. 

Trains a new model.

Parameters:
evc -
modelFile -
Throws:
IOException

trainMaxentModel

@Deprecated
public static opennlp.model.AbstractModel trainMaxentModel(opennlp.model.EventStream es,
                                                                      int iterations,
                                                                      int cut)
                                                    throws IOException
Deprecated. 

Trains a new model

Parameters:
es -
iterations -
cut -
Returns:
the new model
Throws:
IOException

trainPerceptronModel

public static opennlp.model.AbstractModel trainPerceptronModel(opennlp.model.EventStream es,
                                                               int iterations,
                                                               int cut,
                                                               boolean useAverage)
                                                        throws IOException
Deprecated. 
Throws:
IOException

trainPerceptronModel

public static opennlp.model.AbstractModel trainPerceptronModel(opennlp.model.EventStream es,
                                                               int iterations,
                                                               int cut)
                                                        throws IOException
Deprecated. 
Throws:
IOException

trainPerceptronSequenceModel

public static opennlp.model.AbstractModel trainPerceptronSequenceModel(opennlp.model.SequenceStream ss,
                                                                       int iterations,
                                                                       int cut,
                                                                       boolean useAverage)
                                                                throws IOException
Deprecated. 
Throws:
IOException

test

@Deprecated
public static void test(opennlp.model.AbstractModel model)
                 throws IOException
Deprecated. 

Throws:
IOException

main

@Deprecated
public static void main(String[] args)
                 throws IOException
Deprecated. 

Throws:
IOException


Copyright © 2010. All Rights Reserved.