Extract several dimensions

curl \
-X GET \
'https://api.botfuel.io/nlp/entity-extraction/v0'\
'?sentence=two+liters+of+water+cost+4.02+pounds'\
'%2C+you+can+claim+a+50%25+discount+on+Sunday'\
'&antidimensions=percentage,time,number,street-number' \
-H "App-Id: $BOTFUEL_APP_ID" \
-H "App-Key: $BOTFUEL_APP_KEY"
// Response
[
  {
    "dim": "money",
    "body": "4.02 pounds",
    "values": [
      {
        "value": 4.02,
        "unit": "£",
        "type": "float"
      }
    ],
    "start": 25,
    "end": 36
  },
  {
    "dim": "itemCount",
    "body": "two liters of water",
    "values": [
      {
        "value": 2,
        "unit": "liters of water",
        "type": "integer"
      }
    ],
    "start": 0,
    "end": 19
  },
  {
    "dim": "volume",
    "body": "two liters",
    "values": [
      {
        "value": 2,
        "unit": "litre",
        "type": "integer"
      }
    ],
    "start": 0,
    "end": 10
  },
  {
    "dim": "weight",
    "body": "4.02 pounds",
    "values": [
      {
        "value": 4.02,
        "unit": "lb",
        "normalized": [
          {
            "value": 1.8234413273999999,
            "unit": "kg"
          }
        ],
        "type": "float"
      }
    ],
    "start": 25,
    "end": 36
  }
]

Here are some more complex examples, combining more than one dimension.

More than one entity can be extracted from one sentence. For instance, consider the example:

two liters of water cost 4.02 pounds, you can claim a 50% discount on Sunday

where a time (Sunday) and a percentage (50%) will be extracted as well as other entities. We can provide as many 'antidimensions' as we want to hide in the result. Let's remove time, percentage, number and street-number.