Uses of Class
opennlp.tools.util.TrainingParameters
-
Packages that use TrainingParameters Package Description opennlp.tools.chunker Package related to finding non-recursive syntactic annotation such as noun phrase chunks.opennlp.tools.commons Package related to common interfaces used in different contexts.opennlp.tools.doccat Package for classifying a document into a category.opennlp.tools.langdetect Package related to predicting languages from samples of text.opennlp.tools.lemmatizer Package related to the lemmatizer functionality.opennlp.tools.ml Package related to Machine Learning (ML) features of OpenNLP, the related ML models, and trainers.opennlp.tools.ml.maxent Package related to ML by means of the Maximum Entropy (ME) algorithm.opennlp.tools.ml.maxent.quasinewton Package related to ML by means of the Quasi Newton (QN) algorithm.opennlp.tools.ml.model Package related to ML models and feature selection techniques.opennlp.tools.ml.naivebayes Package related to ML by means of the Naive Bayes algorithm.opennlp.tools.ml.perceptron Package related to ML by means of the perceptron algorithm.opennlp.tools.namefind Package related to finding proper names and numeric amounts.opennlp.tools.parser Package containing common code for performing full syntactic parsing.opennlp.tools.parser.chunking Package containing code for performing full syntactic parsing using shift/reduce-style decisions.opennlp.tools.parser.treeinsert Package containing experimental code for performing full syntactic parsing using attachment decisions.opennlp.tools.postag Package related to part-of-speech tagging.opennlp.tools.sentdetect Package related to identifying sentence boundaries.opennlp.tools.tokenize Contains classes related to finding token or words in a string.opennlp.tools.util Package containing utility data structures and algorithms used by multiple other packages.opennlp.tools.util.model -
-
Uses of TrainingParameters in opennlp.tools.chunker
Methods in opennlp.tools.chunker with parameters of type TrainingParameters Modifier and Type Method Description static ChunkerModel
ChunkerME. train(String lang, ObjectStream<ChunkSample> in, TrainingParameters mlParams, ChunkerFactory factory)
Starts a training of aChunkerModel
with the given parameters.Constructors in opennlp.tools.chunker with parameters of type TrainingParameters Constructor Description ChunkerCrossValidator(String languageCode, TrainingParameters params, ChunkerFactory factory, ChunkerEvaluationMonitor... listeners)
Initializes aChunkerCrossValidator
instance via given parameters. -
Uses of TrainingParameters in opennlp.tools.commons
Methods in opennlp.tools.commons with parameters of type TrainingParameters Modifier and Type Method Description void
Trainer. init(TrainingParameters trainParams, Map<String,String> reportMap)
-
Uses of TrainingParameters in opennlp.tools.doccat
Methods in opennlp.tools.doccat with parameters of type TrainingParameters Modifier and Type Method Description static DoccatModel
DocumentCategorizerME. train(String lang, ObjectStream<DocumentSample> samples, TrainingParameters mlParams, DoccatFactory factory)
Starts a training of aDoccatModel
with the given parameters.Constructors in opennlp.tools.doccat with parameters of type TrainingParameters Constructor Description DoccatCrossValidator(String languageCode, TrainingParameters mlParams, DoccatFactory factory, DoccatEvaluationMonitor... listeners)
Instantiates aDoccatCrossValidator
with the givengenerators
. -
Uses of TrainingParameters in opennlp.tools.langdetect
Methods in opennlp.tools.langdetect with parameters of type TrainingParameters Modifier and Type Method Description static LanguageDetectorModel
LanguageDetectorME. train(ObjectStream<LanguageSample> samples, TrainingParameters mlParams, LanguageDetectorFactory factory)
Starts a training of aLanguageDetectorModel
with the given parameters.Constructors in opennlp.tools.langdetect with parameters of type TrainingParameters Constructor Description LanguageDetectorCrossValidator(TrainingParameters mlParams, LanguageDetectorFactory factory, LanguageDetectorEvaluationMonitor... listeners)
Initializes aLanguageDetectorCrossValidator
with the givenparameters
. -
Uses of TrainingParameters in opennlp.tools.lemmatizer
Methods in opennlp.tools.lemmatizer with parameters of type TrainingParameters Modifier and Type Method Description static LemmatizerModel
LemmatizerME. train(String languageCode, ObjectStream<LemmaSample> samples, TrainingParameters params, LemmatizerFactory factory)
Starts a training of aLemmatizerModel
with the given parameters. -
Uses of TrainingParameters in opennlp.tools.ml
Fields in opennlp.tools.ml declared as TrainingParameters Modifier and Type Field Description protected TrainingParameters
AbstractTrainer. trainingParameters
Methods in opennlp.tools.ml with parameters of type TrainingParameters Modifier and Type Method Description static <T> EventModelSequenceTrainer<T>
TrainerFactory. getEventModelSequenceTrainer(TrainingParameters trainParams, Map<String,String> reportMap)
Retrieves anEventModelSequenceTrainer
that fits the given parameters.static EventTrainer
TrainerFactory. getEventTrainer(TrainingParameters trainParams, Map<String,String> reportMap)
Retrieves anEventTrainer
that fits the given parameters.static SequenceTrainer
TrainerFactory. getSequenceModelTrainer(TrainingParameters trainParams, Map<String,String> reportMap)
Retrieves aSequenceTrainer
that fits the given parameters.static TrainerFactory.TrainerType
TrainerFactory. getTrainerType(TrainingParameters trainParams)
Determines theTrainerFactory.TrainerType
based on theAbstractTrainer.ALGORITHM_PARAM
value.void
AbstractTrainer. init(TrainingParameters trainParams, Map<String,String> reportMap)
static boolean
TrainerFactory. isValid(TrainingParameters trainParams)
Constructors in opennlp.tools.ml with parameters of type TrainingParameters Constructor Description AbstractEventTrainer(TrainingParameters parameters)
AbstractTrainer(TrainingParameters trainParams)
Initializes aAbstractTrainer
viaTrainingParameters
. -
Uses of TrainingParameters in opennlp.tools.ml.maxent
Methods in opennlp.tools.ml.maxent with parameters of type TrainingParameters Modifier and Type Method Description void
GISTrainer. init(TrainingParameters trainingParameters, Map<String,String> reportMap)
-
Uses of TrainingParameters in opennlp.tools.ml.maxent.quasinewton
Methods in opennlp.tools.ml.maxent.quasinewton with parameters of type TrainingParameters Modifier and Type Method Description void
QNTrainer. init(TrainingParameters trainingParameters, Map<String,String> reportMap)
Constructors in opennlp.tools.ml.maxent.quasinewton with parameters of type TrainingParameters Constructor Description QNTrainer(TrainingParameters parameters)
Initializes aQNTrainer
. -
Uses of TrainingParameters in opennlp.tools.ml.model
Fields in opennlp.tools.ml.model declared as TrainingParameters Modifier and Type Field Description protected TrainingParameters
AbstractDataIndexer. trainingParameters
Methods in opennlp.tools.ml.model with parameters of type TrainingParameters Modifier and Type Method Description static DataIndexer
DataIndexerFactory. getDataIndexer(TrainingParameters parameters, Map<String,String> reportMap)
Instantiates aDataIndexer
configured viaTrainingParameters
.void
AbstractDataIndexer. init(TrainingParameters indexingParameters, Map<String,String> reportMap)
Sets parameters used during the data indexing.void
DataIndexer. init(TrainingParameters trainParams, Map<String,String> reportMap)
Sets parameters used during the data indexing. -
Uses of TrainingParameters in opennlp.tools.ml.naivebayes
Constructors in opennlp.tools.ml.naivebayes with parameters of type TrainingParameters Constructor Description NaiveBayesTrainer(TrainingParameters parameters)
Instantiates aNaiveBayesTrainer
with specificTrainingParameters
. -
Uses of TrainingParameters in opennlp.tools.ml.perceptron
Constructors in opennlp.tools.ml.perceptron with parameters of type TrainingParameters Constructor Description PerceptronTrainer(TrainingParameters parameters)
Instantiates aPerceptronTrainer
with specificTrainingParameters
. -
Uses of TrainingParameters in opennlp.tools.namefind
Methods in opennlp.tools.namefind with parameters of type TrainingParameters Modifier and Type Method Description static TokenNameFinderModel
NameFinderME. train(String languageCode, String type, ObjectStream<NameSample> samples, TrainingParameters params, TokenNameFinderFactory factory)
Starts a training of aTokenNameFinderModel
with the given parameters.Constructors in opennlp.tools.namefind with parameters of type TrainingParameters Constructor Description TokenNameFinderCrossValidator(String languageCode, String type, TrainingParameters trainParams, byte[] featureGeneratorBytes, Map<String,Object> resources, TokenNameFinderEvaluationMonitor... listeners)
Initializes aTokenNameFinderCrossValidator
with the given parameters.TokenNameFinderCrossValidator(String languageCode, String type, TrainingParameters params, byte[] featureGeneratorBytes, Map<String,Object> resources, SequenceCodec<String> codec, TokenNameFinderEvaluationMonitor... listeners)
Initializes aTokenNameFinderCrossValidator
with the given parameters.TokenNameFinderCrossValidator(String languageCode, String type, TrainingParameters params, TokenNameFinderFactory factory, TokenNameFinderEvaluationMonitor... listeners)
Initializes aTokenNameFinderCrossValidator
with the given parameters. -
Uses of TrainingParameters in opennlp.tools.parser
Methods in opennlp.tools.parser with parameters of type TrainingParameters Modifier and Type Method Description static Dictionary
AbstractBottomUpParser. buildDictionary(ObjectStream<Parse> data, HeadRules rules, TrainingParameters params)
Creates a n-gramDictionary
from the specified data stream using the specified head rule and specified cut-off.Constructors in opennlp.tools.parser with parameters of type TrainingParameters Constructor Description ParserCrossValidator(String languageCode, TrainingParameters params, HeadRules rules, ParserType parserType, ParserEvaluationMonitor... monitors)
Initializes aParserCrossValidator
instance via given parameters. -
Uses of TrainingParameters in opennlp.tools.parser.chunking
Methods in opennlp.tools.parser.chunking with parameters of type TrainingParameters Modifier and Type Method Description static ParserModel
Parser. 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 TrainingParameters Modifier and Type Method Description static ParserModel
Parser. train(String languageCode, ObjectStream<Parse> parseSamples, HeadRules rules, TrainingParameters mlParams)
Starts a training of aParserModel
. -
Uses of TrainingParameters in opennlp.tools.postag
Methods in opennlp.tools.postag with parameters of type TrainingParameters Modifier and Type Method Description static POSModel
POSTaggerME. train(String languageCode, ObjectStream<POSSample> samples, TrainingParameters trainParams, POSTaggerFactory posFactory)
Constructors in opennlp.tools.postag with parameters of type TrainingParameters Constructor Description POSTaggerCrossValidator(String languageCode, TrainingParameters trainParam, File tagDictionary, byte[] featureGeneratorBytes, Map<String,Object> resources, Integer tagdicCutoff, String factoryClass, POSTaggerEvaluationMonitor... listeners)
Initializes aPOSTaggerCrossValidator
that builds a ngram dictionary dynamically.POSTaggerCrossValidator(String languageCode, TrainingParameters trainParam, POSTaggerFactory factory, POSTaggerEvaluationMonitor... listeners)
Creates aPOSTaggerCrossValidator
using the givenPOSTaggerFactory
. -
Uses of TrainingParameters in opennlp.tools.sentdetect
Methods in opennlp.tools.sentdetect with parameters of type TrainingParameters Modifier and Type Method Description static SentenceModel
SentenceDetectorME. train(String languageCode, ObjectStream<SentenceSample> samples, boolean useTokenEnd, Dictionary abbreviations, TrainingParameters mlParams)
Deprecated.static SentenceModel
SentenceDetectorME. train(String languageCode, ObjectStream<SentenceSample> samples, SentenceDetectorFactory sdFactory, TrainingParameters mlParams)
Constructors in opennlp.tools.sentdetect with parameters of type TrainingParameters Constructor Description SDCrossValidator(String languageCode, TrainingParameters params, SentenceDetectorFactory sdFactory, SentenceDetectorEvaluationMonitor... listeners)
-
Uses of TrainingParameters in opennlp.tools.tokenize
Methods in opennlp.tools.tokenize with parameters of type TrainingParameters Modifier and Type Method Description static TokenizerModel
TokenizerME. train(ObjectStream<TokenSample> samples, TokenizerFactory factory, TrainingParameters mlParams)
Trains a model for theTokenizerME
.Constructors in opennlp.tools.tokenize with parameters of type TrainingParameters Constructor Description TokenizerCrossValidator(TrainingParameters params, TokenizerFactory factory, TokenizerEvaluationMonitor... listeners)
Creates aTokenizerCrossValidator
using the givenTokenizerFactory
. -
Uses of TrainingParameters in opennlp.tools.util
Methods in opennlp.tools.util that return TrainingParameters Modifier and Type Method Description static TrainingParameters
TrainingParameters. defaultParams()
TrainingParameters
TrainingParameters. getParameters(String namespace)
static TrainingParameters
TrainingParameters. setParams(String[] params)
Constructors in opennlp.tools.util with parameters of type TrainingParameters Constructor Description TrainingParameters(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 TrainingParameters Modifier and Type Method Description static TrainingParameters
ModelUtil. createDefaultTrainingParameters()
Creates the defaultTrainingParameters
in case they are not provided.
-