Pattern
IntroductionLettria uses NLP techniques and pre-defined rules to identify patterns in text data at the sentence level, to use in classification and categorisation.
Format
Example{
"metadata": { "stats": { "label example": 1 } },
"patterns": [
{
"id": "6087c69cbc96405b4517753b",
"name": "label example",
"label": "label example",
"tokens": [
{
"source": "Victor",
"sentence": 0,
"index": 0,
"source_indexes": [0, 6],
"tags": [{ "name": "tag 1" }]
}
]
}
]
}
Copy
Metadata
Metadata FormatType Description stats object
Stats
Metadata Example{
"stats": { "label example": 1 }
}
Copy
Patterns
Pattern FormatKey Type Description id String
ID name String
Name label String
Label tokens Token [ ]Tokens
Pattern Example{
"id": "6087c69cbc96405b4517753b",
"name": "label example",
"label": "label example",
"tokens": [
{
"source": "Victor",
"sentence": 0,
"index": 0,
"source_indexes": [0, 6],
"tags": [{ "name": "tag 1" }]
}
]
}
Copy
Token
Token FormatKey Type Description source String
Source sentence Number
Sentence index Number
Index source_indexes Number
[ ]Source indexes tags Tag [ ]Tags
Token Example{
"source": "Victor",
"sentence": 0,
"index": 0,
"source_indexes": [0, 6],
"tags": [{ "name": "tag 1" }]
}
Copy
Tag
Tag FormatKey Type Description name String
Name
Tag Example
Next steps