Field | Required | Default | Multiple | Notes | Example |
---|---|---|---|---|---|
properties | Yes | - | No | Configuration object | |
sourceField | Yes | false | No | Selects how to enter the Elasticsearch URL. True: server and port are specified. False: full URL is specified. | true / false |
detectedLanguageField | Yes | "detected_language" | No | The field where the main detected language will be written. | "detected_language" |
detectionType | Yes | "All" | No | Select the type of detection to be used. | "All" |
languagePool | No | "languagePool" | No | If detectionType "All" is selected, the value must be "languagePool" | "languagePool" |
extractConfidenceValues | No | false | No | Check if confidence statistics extraction is required. | false |
detectionOutput | No | "detection_output" | No | Only required if "extractConfidenceValues" is enabled. The field where all detected languages and its statistics will be written. | "detection_output" |
debug | No | false | No | Check to enable debug messages. | false |
limitTextSize | No | false | No | Limit Source Field text size | false |
textSizeLimit | No | 128 | No | Only required if "limitTextSize" is enabled. Maximum size for Source Field's text. | 128 |
includeISOCodes | No | false | No | If enabled, ISO codes will be included in the document. | false |
includeISO639_1 | No | false | No | Check to include the ISO 639-1 codes in the document. | false |
includeISO639_3 | No | false | No | Check to include the ISO 639-3 codes in the document. | false |
# All languages { "type": "application", "_type": "application", "description": "sample-ld-2", "config": "com.accenture.aspire:app-language-detector", "appType": "language-detector", "appName": "Language Detector", "properties": { "sourceField": "content", "detectedLanguageField": "detected_language", "detectionType": "All", "languagePool": "languagePool", "extractConfidenceValues": false, "detectionOutput": "detection_output", "debug": false, "limitTextSize": false, "textSizeLimit": 128, "includeISOCodes": false, "includeISO639_1": false, "includeISO639_3": false } } # Spoken Language { "type": "application", "_type": "application", "description": "sample-ld-3", "config": "com.accenture.aspire:app-language-detector", "appType": "language-detector", "appName": "Language Detector", "properties": { "sourceField": "content", "detectedLanguageField": "detected_language", "detectionType": "Spoken", "languagePool": "languagePool", "extractConfidenceValues": false, "detectionOutput": "detection_output", "debug": false, "limitTextSize": false, "textSizeLimit": 128, "includeISOCodes": false, "includeISO639_1": false, "includeISO639_3": false } } # Cyrillic Language { "type": "application", "_type": "application", "description": "sample-ld-3", "config": "com.accenture.aspire:app-language-detector", "appType": "language-detector", "appName": "Language Detector", "properties": { "sourceField": "content", "detectedLanguageField": "detected_language", "detectionType": "Cyrillic", "languagePool": "languagePool", "extractConfidenceValues": false, "detectionOutput": "detection_output", "debug": false, "limitTextSize": false, "textSizeLimit": 128, "includeISOCodes": false, "includeISO639_1": false, "includeISO639_3": false } } #Specific { "type": "application", "_type": "application", "description": "sample-ld-1", "config": "com.accenture.aspire:app-language-detector", "appType": "language-detector", "appName": "Language Detector", "properties": { "sourceField": "content", "detectedLanguageField": "detected_language", "detectionType": "Specific", "languagePool": [ "Afrikaans", "Albanian" ], "extractConfidenceValues": false, "detectionOutput": "detection_output", "debug": false, "limitTextSize": false, "textSizeLimit": 128, "includeISOCodes": false, "includeISO639_1": false, "includeISO639_3": false } } #Except { "type": "application", "_type": "application", "description": "sample-ld-1", "config": "com.accenture.aspire:app-language-detector", "appType": "language-detector", "appName": "Language Detector", "properties": { "sourceField": "content", "detectedLanguageField": "detected_language", "detectionType": "Except", "languagePool": [ "Afrikaans", "Albanian" ], "extractConfidenceValues": false, "detectionOutput": "detection_output", "debug": false, "limitTextSize": false, "textSizeLimit": 128, "includeISOCodes": false, "includeISO639_1": false, "includeISO639_3": false } }