Package ai.djl
Interface Application.NLP
-
- Enclosing class:
- Application
public static interface Application.NLPThe common set of applications for natural language processing (text data).
-
-
Field Summary
Fields Modifier and Type Field Description static ApplicationANYAny NLP application, including those inApplication.NLP.static ApplicationFILL_MASKAn application that masking some words in a sentence and predicting which words should replace those masks.static ApplicationMACHINE_TRANSLATIONAn application that translates text from one language to another.static ApplicationMULTIPLE_CHOICEAn application to represent a multiple choice question.static ApplicationQUESTION_ANSWERAn application that a reference document and a question about the document and returns text answering the question.static ApplicationSENTIMENT_ANALYSISAn application that classifies text into positive or negative, a specific case ofTEXT_CLASSIFICATION.static ApplicationTEXT_CLASSIFICATIONAn application that classifies text data.static ApplicationTEXT_EMBEDDINGAn application that takes text and returns a feature vector that represents the text.static ApplicationTEXT_GENERATIONstatic ApplicationTOKEN_CLASSIFICATIONA natural language understanding application that assigns a label to some tokens in a text.static ApplicationWORD_EMBEDDINGAn application that takes a word and returns a feature vector that represents the word.
-
-
-
Field Detail
-
ANY
static final Application ANY
Any NLP application, including those inApplication.NLP.
-
FILL_MASK
static final Application FILL_MASK
An application that masking some words in a sentence and predicting which words should replace those masks.
-
QUESTION_ANSWER
static final Application QUESTION_ANSWER
An application that a reference document and a question about the document and returns text answering the question.The typical signature is Model<
QAInput,String>.
-
TEXT_CLASSIFICATION
static final Application TEXT_CLASSIFICATION
An application that classifies text data.The typical signature is Model<
String,Classifications>.
-
SENTIMENT_ANALYSIS
static final Application SENTIMENT_ANALYSIS
An application that classifies text into positive or negative, a specific case ofTEXT_CLASSIFICATION.
-
TOKEN_CLASSIFICATION
static final Application TOKEN_CLASSIFICATION
A natural language understanding application that assigns a label to some tokens in a text.
-
WORD_EMBEDDING
static final Application WORD_EMBEDDING
An application that takes a word and returns a feature vector that represents the word.The most representative signature is Model<
String,NDArray>. However, many models will only embed a fixedVocabularyof words. These words are usually given integer indices which may make the signature Model<String,NDArray> (orNDArray). The signatures may also use singletonNDLists instead ofNDArray.
-
TEXT_GENERATION
static final Application TEXT_GENERATION
-
MACHINE_TRANSLATION
static final Application MACHINE_TRANSLATION
An application that translates text from one language to another.The typical signature is Model<
String,String>.
-
MULTIPLE_CHOICE
static final Application MULTIPLE_CHOICE
An application to represent a multiple choice question.
-
TEXT_EMBEDDING
static final Application TEXT_EMBEDDING
An application that takes text and returns a feature vector that represents the text.The special case where the text consists of only a word is a
WORD_EMBEDDING. The typical signature is Model<String,NDArray>.
-
-