artificial-intelligencechatbotrasa-nlunamed-entity-extraction

How to define entities with intent independent in RASA NLU?


I am working in RASA NLU to extract intents and entities in Arabic language, and I have my own entities such as (places, org, and people) and i want to add these entities without any intent. I just want to add them as an entities and their type. How can I do this?


Solution

  • Are you using .md or .json as training data file? I cannot think of a solution to pass an entity in markdown format without defining an intent. But in json format you may pass a text without defining an intent by simply not writing a value for the dictionary key "intent". See example below. The documentation https://rasa.com/docs/nlu/dataformat/ says that intent is an optional field, so it should work.

    { "text": "show me chinese restaurants", "intent": , "entities": [ { "start": 8, "end": 15, "value": "chinese", "entity": "cuisine" } ] }

    I would try leaving the value of "intent" completely empty, insert None or Null.