Uses of Class
opennlp.tools.util.TrainingParameters
Packages that use TrainingParameters
Package
Description
Provides main functionality of the maxent package including data structures and
algorithms for parameter estimation.
-
Uses of TrainingParameters in opennlp.tools.chunker
Fields in opennlp.tools.chunker declared as TrainingParametersMethods in opennlp.tools.chunker with parameters of type TrainingParametersModifier and TypeMethodDescriptionstatic ChunkerModelChunkerME.train(String lang, ObjectStream<ChunkSample> in, TrainingParameters mlParams, ChunkerFactory factory) Starts a training of aChunkerModelwith the given parameters.Constructors in opennlp.tools.chunker with parameters of type TrainingParametersModifierConstructorDescriptionChunkerCrossValidator(String languageCode, TrainingParameters params, ChunkerFactory factory, ChunkerEvaluationMonitor... listeners) Initializes aChunkerCrossValidatorinstance via given parameters. -
Uses of TrainingParameters in opennlp.tools.depparse
Fields in opennlp.tools.depparse declared as TrainingParametersModifier and TypeFieldDescriptionprivate final TrainingParametersDependencyCrossValidator.paramsMethods in opennlp.tools.depparse with parameters of type TrainingParametersModifier and TypeMethodDescription(package private) static FeedforwardDependencyTrainer.SettingsFeedforwardDependencyTrainer.Settings.from(TrainingParameters parameters) Reads the hyperparameters, substituting the defaults for absent keys.static FeedforwardDependencyModelFeedforwardDependencyTrainer.refine(FeedforwardDependencyModel model, ObjectStream<DependencySample> samples, TrainingParameters parameters) Refines a locally trained model with beam search and the early-update method of Collins and Roark (2004).static DependencyModelDependencyParserME.train(String languageCode, ObjectStream<DependencySample> samples, TrainingParameters parameters) Trains a greedy arc-standard parser model from dependency samples.static FeedforwardDependencyModelFeedforwardDependencyTrainer.train(String languageCode, ObjectStream<DependencySample> samples, TrainingParameters parameters) Trains a model from dependency samples.Constructors in opennlp.tools.depparse with parameters of type TrainingParametersModifierConstructorDescriptionDependencyCrossValidator(String languageCode, TrainingParameters params, Predicate<String> punctuationTag, DependencyEvaluationMonitor... listeners) Initializes aDependencyCrossValidatorwith a custom notion of punctuation.DependencyCrossValidator(String languageCode, TrainingParameters params, DependencyEvaluationMonitor... listeners) Initializes aDependencyCrossValidatorthat treats tokens taggedDependencyEvaluator.UNIVERSAL_PUNCTUATION_TAGas punctuation. -
Uses of TrainingParameters in opennlp.tools.doccat
Fields in opennlp.tools.doccat declared as TrainingParametersMethods in opennlp.tools.doccat with parameters of type TrainingParametersModifier and TypeMethodDescriptionstatic DoccatModelDocumentCategorizerME.train(String lang, ObjectStream<DocumentSample> samples, TrainingParameters mlParams, DoccatFactory factory) Starts a training of aDoccatModelwith the given parameters.Constructors in opennlp.tools.doccat with parameters of type TrainingParametersModifierConstructorDescriptionDoccatCrossValidator(String languageCode, TrainingParameters mlParams, DoccatFactory factory, DoccatEvaluationMonitor... listeners) Instantiates aDoccatCrossValidatorwith the givengenerators. -
Uses of TrainingParameters in opennlp.tools.langdetect
Fields in opennlp.tools.langdetect declared as TrainingParametersModifier and TypeFieldDescriptionprivate final TrainingParametersLanguageDetectorCrossValidator.paramsMethods in opennlp.tools.langdetect with parameters of type TrainingParametersModifier and TypeMethodDescriptionstatic LanguageDetectorModelLanguageDetectorME.train(ObjectStream<LanguageSample> samples, TrainingParameters mlParams, LanguageDetectorFactory factory) Starts a training of aLanguageDetectorModelwith the given parameters.Constructors in opennlp.tools.langdetect with parameters of type TrainingParametersModifierConstructorDescriptionLanguageDetectorCrossValidator(TrainingParameters mlParams, LanguageDetectorFactory factory, LanguageDetectorEvaluationMonitor... listeners) Initializes aLanguageDetectorCrossValidatorwith the givenparameters. -
Uses of TrainingParameters in opennlp.tools.lemmatizer
Methods in opennlp.tools.lemmatizer with parameters of type TrainingParametersModifier and TypeMethodDescriptionstatic LemmatizerModelLemmatizerME.train(String languageCode, ObjectStream<LemmaSample> samples, TrainingParameters params, LemmatizerFactory factory) Starts a training of aLemmatizerModelwith the given parameters. -
Uses of TrainingParameters in opennlp.tools.ml
Fields in opennlp.tools.ml with type parameters of type TrainingParametersModifier and TypeFieldDescriptionprivate static final Map<String, Class<? extends Trainer<TrainingParameters>>> TrainerFactory.BUILTIN_TRAINERSMethods in opennlp.tools.ml that return types with arguments of type TrainingParametersModifier and TypeMethodDescriptionstatic <T> EventModelSequenceTrainer<T, TrainingParameters> TrainerFactory.getEventModelSequenceTrainer(TrainingParameters trainParams, Map<String, String> reportMap) Retrieves anEventModelSequenceTrainerthat fits the given parameters.static EventTrainer<TrainingParameters> TrainerFactory.getEventTrainer(TrainingParameters trainParams, Map<String, String> reportMap) Works just likeTrainerFactory.getEventTrainer(TrainingParameters, Map, TrainingConfiguration)except thatTrainingConfigurationis initialized with default values.static EventTrainer<TrainingParameters> TrainerFactory.getEventTrainer(TrainingParameters trainParams, Map<String, String> reportMap, TrainingConfiguration config) Retrieves anEventTrainerthat fits the given parameters.static SequenceTrainer<TrainingParameters> TrainerFactory.getSequenceModelTrainer(TrainingParameters trainParams, Map<String, String> reportMap) Retrieves aSequenceTrainerthat fits the given parameters.Methods in opennlp.tools.ml with parameters of type TrainingParametersModifier and TypeMethodDescriptionstatic <T> EventModelSequenceTrainer<T, TrainingParameters> TrainerFactory.getEventModelSequenceTrainer(TrainingParameters trainParams, Map<String, String> reportMap) Retrieves anEventModelSequenceTrainerthat fits the given parameters.static EventTrainer<TrainingParameters> TrainerFactory.getEventTrainer(TrainingParameters trainParams, Map<String, String> reportMap) Works just likeTrainerFactory.getEventTrainer(TrainingParameters, Map, TrainingConfiguration)except thatTrainingConfigurationis initialized with default values.static EventTrainer<TrainingParameters> TrainerFactory.getEventTrainer(TrainingParameters trainParams, Map<String, String> reportMap, TrainingConfiguration config) Retrieves anEventTrainerthat fits the given parameters.static SequenceTrainer<TrainingParameters> TrainerFactory.getSequenceModelTrainer(TrainingParameters trainParams, Map<String, String> reportMap) Retrieves aSequenceTrainerthat fits the given parameters. -
Uses of TrainingParameters in opennlp.tools.ml.maxent
Methods in opennlp.tools.ml.maxent with parameters of type TrainingParametersModifier and TypeMethodDescriptionvoidGISTrainer.init(TrainingParameters trainingParameters, Map<String, String> reportMap) Method parameters in opennlp.tools.ml.maxent with type arguments of type TrainingParametersModifier and TypeMethodDescriptionGISTrainer.doTrain(DataIndexer<TrainingParameters> indexer) GISTrainer.trainModel(int iterations, DataIndexer<TrainingParameters> di) Trains a model using the GIS algorithm.GISTrainer.trainModel(int iterations, DataIndexer<TrainingParameters> di, int threads) Trains a model using the GIS algorithm.GISTrainer.trainModel(int iterations, DataIndexer<TrainingParameters> di, Prior modelPrior, int threads) Trains a model using the GIS algorithm. -
Uses of TrainingParameters in opennlp.tools.ml.maxent.quasinewton
Fields in opennlp.tools.ml.maxent.quasinewton with type parameters of type TrainingParametersModifier and TypeFieldDescriptionprivate final DataIndexer<TrainingParameters> QNTrainer.ModelEvaluator.indexerThe field for theindexerrecord component.Methods in opennlp.tools.ml.maxent.quasinewton that return types with arguments of type TrainingParametersModifier and TypeMethodDescriptionQNTrainer.ModelEvaluator.indexer()Returns the value of theindexerrecord component.Methods in opennlp.tools.ml.maxent.quasinewton with parameters of type TrainingParametersModifier and TypeMethodDescriptionvoidQNTrainer.init(TrainingParameters trainingParameters, Map<String, String> reportMap) Method parameters in opennlp.tools.ml.maxent.quasinewton with type arguments of type TrainingParametersModifier and TypeMethodDescriptionQNTrainer.doTrain(DataIndexer<TrainingParameters> indexer) QNTrainer.trainModel(int iterations, DataIndexer<TrainingParameters> indexer) Trains amodelusing the QN algorithm.Constructors in opennlp.tools.ml.maxent.quasinewton with parameters of type TrainingParametersModifierConstructorDescriptionQNTrainer(TrainingParameters parameters) Initializes aQNTrainerwith the specifiedparameters.Constructor parameters in opennlp.tools.ml.maxent.quasinewton with type arguments of type TrainingParametersModifierConstructorDescriptionprivateModelEvaluator(DataIndexer<TrainingParameters> indexer) Creates an instance of aModelEvaluatorrecord class.NegLogLikelihood(DataIndexer<TrainingParameters> indexer) ParallelNegLogLikelihood(DataIndexer<TrainingParameters> indexer, int threads) -
Uses of TrainingParameters in opennlp.tools.ml.naivebayes
Method parameters in opennlp.tools.ml.naivebayes with type arguments of type TrainingParametersModifier and TypeMethodDescriptionNaiveBayesTrainer.doTrain(DataIndexer<TrainingParameters> indexer) NaiveBayesTrainer.trainModel(DataIndexer<TrainingParameters> di) Trains aNaiveBayesModelwith given parameters.Constructors in opennlp.tools.ml.naivebayes with parameters of type TrainingParametersModifierConstructorDescriptionNaiveBayesTrainer(TrainingParameters parameters) Instantiates aNaiveBayesTrainerwith specificTrainingParameters. -
Uses of TrainingParameters in opennlp.tools.ml.perceptron
Method parameters in opennlp.tools.ml.perceptron with type arguments of type TrainingParametersModifier and TypeMethodDescriptionPerceptronTrainer.doTrain(DataIndexer<TrainingParameters> indexer) PerceptronTrainer.trainModel(int iterations, DataIndexer<TrainingParameters> di, int cutoff) Trains aPerceptronModelwith given parameters.PerceptronTrainer.trainModel(int iterations, DataIndexer<TrainingParameters> di, int cutoff, boolean useAverage) Trains aPerceptronModelwith given parameters.Constructors in opennlp.tools.ml.perceptron with parameters of type TrainingParametersModifierConstructorDescriptionPerceptronTrainer(TrainingParameters parameters) Instantiates aPerceptronTrainerwith specificTrainingParameters. -
Uses of TrainingParameters in opennlp.tools.namefind
Fields in opennlp.tools.namefind declared as TrainingParametersModifier and TypeFieldDescriptionprivate final TrainingParametersTokenNameFinderCrossValidator.paramsMethods in opennlp.tools.namefind with parameters of type TrainingParametersModifier and TypeMethodDescriptionstatic TokenNameFinderModelNameFinderME.train(String languageCode, String type, ObjectStream<NameSample> samples, TrainingParameters params, TokenNameFinderFactory factory) Starts a training of aTokenNameFinderModelwith the given parameters.Constructors in opennlp.tools.namefind with parameters of type TrainingParametersModifierConstructorDescriptionTokenNameFinderCrossValidator(String languageCode, String type, TrainingParameters trainParams, byte[] featureGeneratorBytes, Map<String, Object> resources, TokenNameFinderEvaluationMonitor... listeners) Initializes aTokenNameFinderCrossValidatorwith the given parameters.TokenNameFinderCrossValidator(String languageCode, String type, TrainingParameters params, byte[] featureGeneratorBytes, Map<String, Object> resources, SequenceCodec<String> codec, TokenNameFinderEvaluationMonitor... listeners) Initializes aTokenNameFinderCrossValidatorwith the given parameters.TokenNameFinderCrossValidator(String languageCode, String type, TrainingParameters params, TokenNameFinderFactory factory, TokenNameFinderEvaluationMonitor... listeners) Initializes aTokenNameFinderCrossValidatorwith the given parameters. -
Uses of TrainingParameters in opennlp.tools.parser
Methods in opennlp.tools.parser with parameters of type TrainingParametersModifier and TypeMethodDescriptionstatic DictionaryAbstractBottomUpParser.buildDictionary(ObjectStream<Parse> data, HeadRules rules, TrainingParameters params) Creates a n-gramDictionaryfrom the specified data stream using the specified head rule and specified cut-off. -
Uses of TrainingParameters in opennlp.tools.parser.chunking
Methods in opennlp.tools.parser.chunking with parameters of type TrainingParametersModifier and TypeMethodDescriptionstatic ParserModelParser.train(String languageCode, ObjectStream<Parse> parseSamples, HeadRules rules, TrainingParameters mlParams) Starts a training of aParserModel. -
Uses of TrainingParameters in opennlp.tools.parser.treeinsert
Methods in opennlp.tools.parser.treeinsert with parameters of type TrainingParametersModifier and TypeMethodDescriptionstatic ParserModelParser.train(String languageCode, ObjectStream<Parse> parseSamples, HeadRules rules, TrainingParameters mlParams) Starts a training of aParserModel. -
Uses of TrainingParameters in opennlp.tools.postag
Fields in opennlp.tools.postag declared as TrainingParametersMethods in opennlp.tools.postag with parameters of type TrainingParametersModifier and TypeMethodDescriptionstatic POSModelPOSTaggerME.train(String languageCode, ObjectStream<POSSample> samples, TrainingParameters mlParams, POSTaggerFactory posFactory) Starts a training of aPOSModelwith the given parameters.Constructors in opennlp.tools.postag with parameters of type TrainingParametersModifierConstructorDescriptionPOSTaggerCrossValidator(String languageCode, TrainingParameters trainParam, File tagDictionary, byte[] featureGeneratorBytes, Map<String, Object> resources, Integer tagdicCutoff, String factoryClass, POSTagFormat format, POSTaggerEvaluationMonitor... listeners) Initializes aPOSTaggerCrossValidatorthat builds a ngram dictionary dynamically.POSTaggerCrossValidator(String languageCode, TrainingParameters trainParam, File tagDictionary, byte[] featureGeneratorBytes, Map<String, Object> resources, Integer tagdicCutoff, String factoryClass, POSTaggerEvaluationMonitor... listeners) Initializes aPOSTaggerCrossValidatorthat builds a ngram dictionary dynamically.POSTaggerCrossValidator(String languageCode, TrainingParameters trainParam, POSTaggerFactory factory, POSTagFormat format, POSTaggerEvaluationMonitor... listeners) Creates aPOSTaggerCrossValidatorusing the givenPOSTaggerFactory.POSTaggerCrossValidator(String languageCode, TrainingParameters trainParam, POSTaggerFactory factory, POSTaggerEvaluationMonitor... listeners) Creates aPOSTaggerCrossValidatorusing the givenPOSTaggerFactory. -
Uses of TrainingParameters in opennlp.tools.sentdetect
Fields in opennlp.tools.sentdetect declared as TrainingParametersMethods in opennlp.tools.sentdetect with parameters of type TrainingParametersModifier and TypeMethodDescriptionstatic SentenceModelSentenceDetectorME.train(String languageCode, ObjectStream<SentenceSample> samples, SentenceDetectorFactory sdFactory, TrainingParameters mlParams) Starts a training of aSentenceModelwith the given parameters.Constructors in opennlp.tools.sentdetect with parameters of type TrainingParametersModifierConstructorDescriptionSDCrossValidator(String languageCode, TrainingParameters params, SentenceDetectorFactory sdFactory, SentenceDetectorEvaluationMonitor... listeners) -
Uses of TrainingParameters in opennlp.tools.sentiment
Fields in opennlp.tools.sentiment declared as TrainingParametersMethods in opennlp.tools.sentiment with parameters of type TrainingParametersModifier and TypeMethodDescriptionstatic SentimentModelSentimentME.train(String languageCode, ObjectStream<SentimentSample> samples, TrainingParameters trainParams, SentimentFactory factory) Trains aSentiment Analysis model.Constructors in opennlp.tools.sentiment with parameters of type TrainingParametersModifierConstructorDescriptionSentimentCrossValidator(String lang, TrainingParameters params, SentimentFactory factory, SentimentEvaluationMonitor[] monitors) Constructor -
Uses of TrainingParameters in opennlp.tools.tokenize
Fields in opennlp.tools.tokenize declared as TrainingParametersMethods in opennlp.tools.tokenize with parameters of type TrainingParametersModifier and TypeMethodDescriptionstatic TokenizerModelTokenizerME.train(ObjectStream<TokenSample> samples, TokenizerFactory factory, TrainingParameters mlParams) Trains a model for theTokenizerME.Constructors in opennlp.tools.tokenize with parameters of type TrainingParametersModifierConstructorDescriptionTokenizerCrossValidator(TrainingParameters params, TokenizerFactory factory, TokenizerEvaluationMonitor... listeners) Creates aTokenizerCrossValidatorusing the givenTokenizerFactory. -
Uses of TrainingParameters in opennlp.tools.util
Methods in opennlp.tools.util that return TrainingParametersModifier and TypeMethodDescriptionstatic TrainingParametersTrainingParameters.defaultParams()TrainingParameters.getParameters(String namespace) static TrainingParametersConstructors in opennlp.tools.util with parameters of type TrainingParametersModifierConstructorDescriptionTrainingParameters(TrainingParameters trainingParameters) Copy constructor to hand over the config of existingTrainingParameters. -
Uses of TrainingParameters in opennlp.tools.util.model
Methods in opennlp.tools.util.model that return TrainingParametersModifier and TypeMethodDescriptionstatic TrainingParametersModelUtil.createDefaultTrainingParameters()Creates the defaultTrainingParametersin case they are not provided.