public class PartOfSpeechModelOperations extends Object implements ModelTrainingOperations, ModelSeparateDataValidationOperations<ai.idylnlp.model.training.AccuracyEvaluationResult>
| Constructor and Description |
|---|
PartOfSpeechModelOperations() |
| Modifier and Type | Method and Description |
|---|---|
ai.idylnlp.model.training.AccuracyEvaluationResult |
separateDataEvaluate(ai.idylnlp.model.nlp.subjects.SubjectOfTrainingOrEvaluation SubjectOfTrainingOrEvaluation,
String modelFileName,
String encryptionKey)
Performs model validation using separate data.
|
static String |
train(TrainingDefinitionReader reader)
Performs part-of-speech model training using a training definition file.
|
String |
trainMaxEntQN(ai.idylnlp.model.nlp.subjects.SubjectOfTrainingOrEvaluation SubjectOfTrainingOrEvaluation,
String modelFile,
com.neovisionaries.i18n.LanguageCode language,
String encryptionKey,
int cutOff,
int iterations,
int threads,
double l1,
double l2,
int m,
int max)
Train a maxent model using quasi-newton.
|
String |
trainPerceptron(ai.idylnlp.model.nlp.subjects.SubjectOfTrainingOrEvaluation SubjectOfTrainingOrEvaluation,
String modelFile,
com.neovisionaries.i18n.LanguageCode language,
String encryptionKey,
int cutOff,
int iterations)
Train a perceptron model using.
|
public static String train(TrainingDefinitionReader reader) throws IOException
reader - A TrainingDefinitionReader.IOException - Thrown if the model creation fails.public ai.idylnlp.model.training.AccuracyEvaluationResult separateDataEvaluate(ai.idylnlp.model.nlp.subjects.SubjectOfTrainingOrEvaluation SubjectOfTrainingOrEvaluation,
String modelFileName,
String encryptionKey)
throws IOException
ModelSeparateDataValidationOperationsseparateDataEvaluate in interface ModelSeparateDataValidationOperations<ai.idylnlp.model.training.AccuracyEvaluationResult>SubjectOfTrainingOrEvaluation - The SubjectOfTrainingOrEvaluation.modelFileName - The full path to the model file.encryptionKey - The model's encryption key.FMeasure.IOException - Thrown if any of the input files cannot be read.public String trainMaxEntQN(ai.idylnlp.model.nlp.subjects.SubjectOfTrainingOrEvaluation SubjectOfTrainingOrEvaluation, String modelFile, com.neovisionaries.i18n.LanguageCode language, String encryptionKey, int cutOff, int iterations, int threads, double l1, double l2, int m, int max) throws IOException
ModelTrainingOperationstrainMaxEntQN in interface ModelTrainingOperationsSubjectOfTrainingOrEvaluation - The SubjectOfTrainingOrEvaluation.modelFile - The output model file.language - The language of the model.encryptionKey - The model's encryption key.cutOff - The training cutoff.iterations - The training iterations.threads - The number of training threads.IOException - Thrown if the model cannot be trained.public String trainPerceptron(ai.idylnlp.model.nlp.subjects.SubjectOfTrainingOrEvaluation SubjectOfTrainingOrEvaluation, String modelFile, com.neovisionaries.i18n.LanguageCode language, String encryptionKey, int cutOff, int iterations) throws IOException
ModelTrainingOperationstrainPerceptron in interface ModelTrainingOperationsSubjectOfTrainingOrEvaluation - The SubjectOfTrainingOrEvaluation.modelFile - The output model file.language - The language of the model.encryptionKey - The model's encryption key.cutOff - The training cutoff.iterations - The training iterations.IOException - Thrown if the model cannot be trained.Copyright © 2018. All rights reserved.