Meaning
Introduction
Lettria allows for precise and accurate analysis of token meanings within a sentence, as a result of its robust data features on the platform, such as databases and data configuration.
The Meaning
subtype of the Token
Object provides information about the definition and context of the word, using Lettria's extensive database of language data. This allows users to understand the true meaning of the word within the context of the sentence, rather than relying on a basic dictionary definition.
In addition, the Lemmatizer
subtype of the Token
Object helps to identify the base form of the word, enabling users to more accurately analyze the structure and syntax of the sentence. This is particularly useful for tasks such as text summarization and machine translation, where it is important to understand the relationships between different words and their meanings.
Format
Meanings are received inside an Array()
A comprehensive list of categories can be found here.
Meaning Format
Key | Type | Description |
---|---|---|
sub | String | Sub meaning. |
super | String | Super meaning. |
intensity | int | Intensity of the meaning. |
negation | boolean | True if the token means the opposit of its meaning. |
origin | string[] | Where did we get this meaning from. |
Example
[ { "sub": "concret|natural_thing", "super": "person", "intensity": 1, "negation": false, "origin": ["ml_ner"] }, { "sub": "like", "super": "root|act|feeling|like/dislike_(sthg)", "intensity": 1, "negation": false, "origin": ["lettria"] }, { "sub": "be_located", "super": "root|act|being|be_related", "intensity": 1, "negation": false, "origin": ["desambiguisation"] } ]