v1

latestSwagger 2.02026-07-1727416.9 KB
Labelling Interaction

Submit the labeled text from the user

post/interaction

Request body

textstring

The original text

labelinteger

User selected label

Example request

{
  "text": "pleas subscribe on me to my channel",
  "annotations": [
    {
      "id": 6,
      "label": 0,
      "start_offset": 6,
      "end_offset": 21
    }
  ],
  "label": 1
}

Response

A list of LF explanation generated from user interaction

Connectiveinteger
CONNECTIVE_string

String explanation of the connective type

Directionboolean
Labelinteger
Weightinteger

Example response

[
  {
    "Conditions": [
      {
        "string": "(?:(?<=\\W)|(?<=^))(terrible)(?=\\W|$)",
        "token_text": "terrible",
        "type": 0,
        "case_sensitive": false
      }
    ]
  }
]