NLP Annotator Query Stage
Like the NLP Annotator index stage, the NLP Annotator query stage can be included in an query pipeline to perform Natural Language Processing tasks.
This stage is deprecated as of Fusion 5.2.0. in favor of SpaCy and Seldon Core functionality. |
-
Add the NLP Annotator query stage to the query pipeline.
-
Supply the Model ID ("opennlp", "spacy", or the model ID given to the uploaded Spark NLP model).
-
Specify the input parameter, label pattern and target parameter fields:
-
input parameter field: the Fusion query parameter text, normally
q
since we want to annotate the raw query string to understand the intent. -
label pattern: regex pattern that matches the NER/POS labels: for example,
PER.
will match extracted name entities with labelPERSON
, whileNN.
will match tagged nouns. -
target parameter field: the outcome extraction/tagging, and.
For the query stage, the result is set to be put in a new query parameter field:
-
Configuration
When entering configuration values in the UI, use unescaped characters, such as \t for the tab character. When entering configuration values in the API, use escaped characters, such as \\t for the tab character.
|