Package ai.djl.fasttext
Class TrainFastText
java.lang.Object
ai.djl.fasttext.TrainFastText
A utility to aggregate options for training with fasttext.
-
Method Summary
Modifier and TypeMethodDescriptionstatic FtTextClassificationtextClassification(FtTrainingConfig config, ai.djl.training.dataset.RawDataset<Path> dataset) Trains a fastTextApplication.NLP.TEXT_CLASSIFICATIONmodel.
-
Method Details
-
textClassification
public static FtTextClassification textClassification(FtTrainingConfig config, ai.djl.training.dataset.RawDataset<Path> dataset) throws IOException Trains a fastTextApplication.NLP.TEXT_CLASSIFICATIONmodel.- Parameters:
config- the training configuration to usedataset- the training dataset- Returns:
- the result of the training
- Throws:
IOException- when IO operation fails in loading a resource- See Also:
-