Other dimensions

Dimension language

curl -X GET 'https://api.botfuel.io/nlp/entity-extraction/v0'\
'?sentence=I+speak+tamil+fluently'\
'&dimensions=language' \
-H "App-Id: $BOTFUEL_APP_ID" \
-H "App-Key: $BOTFUEL_APP_KEY"
[
  {
    "dim": "language",
    "body": "tamil",
    "values": [
      {
        "value": "tamil",
        "type": "string"
      }
    ],
    "start": 8,
    "end": 13
  }
]

A spoken language

Dimension nationality

curl -X GET 'https://api.botfuel.io/nlp/entity-extraction/v0'\
'?sentence=irishwoman'\
'&dimensions=nationality' \
-H "App-Id: $BOTFUEL_APP_ID" \
-H "App-Key: $BOTFUEL_APP_KEY"
[
  {
    "dim": "nationality",
    "body": "irishwoman",
    "values": [
      {
        "value": "Ireland",
        "type": "string"
      }
    ],
    "start": 0,
    "end": 10
  }
]

The name of the people of a country

Dimension email

curl -X GET 'https://api.botfuel.io/nlp/entity-extraction/v0'\
'?sentence=you@botfuel.io'\
'&dimensions=email' \
-H "App-Id: $BOTFUEL_APP_ID" \
-H "App-Key: $BOTFUEL_APP_KEY"
[
  {
    "dim": "email",
    "body": "you@botfuel.io",
    "values": [
      {
        "value": "you@botfuel.io",
        "type": "string"
      }
    ],
    "start": 0,
    "end": 14
  }
]

A well-formed email address

Dimension handle

curl -X GET 'https://api.botfuel.io/nlp/entity-extraction/v0'\
'?sentence=@myself'\
'&dimensions=handle' \
-H "App-Id: $BOTFUEL_APP_ID" \
-H "App-Key: $BOTFUEL_APP_KEY"
[
  {
    "dim": "handle",
    "body": "@myself",
    "values": [
      {
        "value": "myself",
        "type": "string"
      }
    ],
    "start": 0,
    "end": 7
  }
]

Any group of characters beginning with '@'

Dimension hashtag

curl -X GET 'https://api.botfuel.io/nlp/entity-extraction/v0'\
'?sentence=#ThisIsIt'\
'&dimensions=hashtag' \
-H "App-Id: $BOTFUEL_APP_ID" \
-H "App-Key: $BOTFUEL_APP_KEY"
[
  {
    "dim": "hashtag",
    "body": "#ThisIsIt",
    "values": [
      {
        "value": "ThisIsIt",
        "type": "string"
      }
    ],
    "start": 0,
    "end": 9
  }
]

Any group of characters beginning with '#'

Dimension forename

curl -X GET 'https://api.botfuel.io/nlp/entity-extraction/v0'\
'?sentence=My+name+is+Mary'\
'&dimensions=forename' \
-H "App-Id: $BOTFUEL_APP_ID" \
-H "App-Key: $BOTFUEL_APP_KEY"
[
  {
    "dim": "forename",
    "body": "Mary",
    "values": [
      {
        "value": "mary",
        "sex": "female"
      }
    ],
    "start": 11,
    "end": 15
  }
]

A common forename

Dimension family

curl -X GET 'https://api.botfuel.io/nlp/entity-extraction/v0'\
'?sentence=she+is+my+aunt'\
'&dimensions=family' \
-H "App-Id: $BOTFUEL_APP_ID" \
-H "App-Key: $BOTFUEL_APP_KEY"
[
  {
    "dim": "family",
    "body": "aunt",
    "values": [
      {
        "value": "aunt",
        "sex": "female"
      }
    ],
    "start": 10,
    "end": 14
  }
]

A family member

Dimension url

curl -X GET 'https://api.botfuel.io/nlp/entity-extraction/v0'\
'?sentence=https%3A%2F%2Fbotfuel.io%2F'\
'&dimensions=url' \
-H "App-Id: $BOTFUEL_APP_ID" \
-H "App-Key: $BOTFUEL_APP_KEY"
[
  {
    "dim": "url",
    "body": "https://botfuel.io/",
    "values": [
      {
        "value": "https://botfuel.io/",
        "type": "string"
      }
    ],
    "start": 0,
    "end": 19
  }
]

A well-formed URL

Dimension color

curl -X GET 'https://api.botfuel.io/nlp/entity-extraction/v0'\
'?sentence=red+shoes'\
'&dimensions=color' \
-H "App-Id: $BOTFUEL_APP_ID" \
-H "App-Key: $BOTFUEL_APP_KEY"
[
  {
    "dim": "color",
    "body": "red",
    "values": [
      {
        "value": "FF0000",
        "name": "red"
      }
    ],
    "start": 0,
    "end": 3
  }
]

A color