Language Identifier Results Schema for JSON#
Application ID
eot_language_identifier
Description#
The LanguageIdentifierResults
schema describes the structure of the JSON data returned from the Language Identifier application by the SDK or the Portal.
Definition#
The LanguageIdentifierResults
schema is defined as:
* object
– The identified theme
language (
string
) – The language of the documentsection (
number
) – The information of the different section in a document. only if sections is true
begin_offset (
number
) – The begin offset of the section.end_offset (
string
) – The end offset of the section.language (
string
) – The language of the section.text (
string
) – The text of the section. only if section_data is true
Example#
The following is an example of the JSON results for this application:
{
"sections": [
{
"begin_offset": 0,
"end_offset": 65,
"language": "dutch",
"text": "Ik ga met de fiets naar het werk, en ik kom terug met de train.\n\n"
},
{
"begin_offset": 65,
"end_offset": 103,
"language": "english",
"text": "But I'm driving to de gym with my car."
}
]
}