Package ai.djl
Interface Application.NLP
- Enclosing class:
- Application
public static interface Application.NLP
The common set of applications for natural language processing (text data).
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Application
Any NLP application, including those inApplication.NLP
.static final Application
An application that masking some words in a sentence and predicting which words should replace those masks.static final Application
An application that translates text from one language to another.static final Application
An application to represent a multiple choice question.static final Application
An application that a reference document and a question about the document and returns text answering the question.static final Application
An application that classifies text into positive or negative, a specific case ofTEXT_CLASSIFICATION
.static final Application
An application that classifies text data.static final Application
An application that takes text and returns a feature vector that represents the text.static final Application
static final Application
A natural language understanding application that assigns a label to some tokens in a text.static final Application
An application that takes a word and returns a feature vector that represents the word.
-
Field Details
-
ANY
Any NLP application, including those inApplication.NLP
. -
FILL_MASK
An application that masking some words in a sentence and predicting which words should replace those masks. -
QUESTION_ANSWER
-
TEXT_CLASSIFICATION
An application that classifies text data.The typical signature is Model<
String
,Classifications
>. -
SENTIMENT_ANALYSIS
An application that classifies text into positive or negative, a specific case ofTEXT_CLASSIFICATION
. -
TOKEN_CLASSIFICATION
A natural language understanding application that assigns a label to some tokens in a text. -
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 fixedVocabulary
of words. These words are usually given integer indices which may make the signature Model<String
,NDArray
> (orNDArray
). The signatures may also use singletonNDList
s instead ofNDArray
. -
TEXT_GENERATION
-
MACHINE_TRANSLATION
-
MULTIPLE_CHOICE
An application to represent a multiple choice question. -
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
>.
-