Package ai.djl.modality.nlp.embedding
Contains classes that deal with word embeddings for natural language pre-processing tasks.
-
Interface Summary Interface Description TextEmbedding A class to manage 1-DNDArrayrepresentations of multiple words.WordEmbedding A class to manage 1-DNDArrayrepresentations of words. -
Class Summary Class Description ModelZooTextEmbedding AWordEmbeddingusing aZooModel.SimpleTextEmbedding ATextEmbeddingthat applies aWordEmbeddingto each word independently.TrainableTextEmbedding TrainableWordEmbedding TrainableWordEmbeddingis an implementation ofWordEmbeddingandEmbeddingbased on aDefaultVocabulary.TrainableWordEmbedding.Builder A builder for aTrainableWordEmbedding. -
Exception Summary Exception Description EmbeddingException Thrown to indicate that there was some error while loading embeddings.