DetectDominantLanguage Processor
Part of the AWS Processor package
This processor will take an input string and return the dominant language(s) present in the text.
Properties
This processor does not have any unique properties outside of the common ones.
Data Output
If the Destination property is set to flowfile-attribute, then the output of this processor will be routed to the FlowFile's nlp.DominantLanguage attribute, which will be created if it isn't present.
Field Name
Data Type
Description
languages
array of Language
The list of languages found by the API
Language
LanguageField Name
Data Type
Description
score
float
How confident the API is in its response
{
"raw-input": "Here's some example text!",
"output": {
"languages": [
{
"code": "en",
"score": 0.92942
}
]
}
}Last updated
Was this helpful?