Rasa train API: Pass lookup tables

Hi,

is there a way to pass lookup tables via the rasa /model/train api?

As of the current state you can pass the nlu trainig data, but the ‘## lookup:{Entity}’-section is always interpreted as path - is there a way to bypass this (except from uplading the file before).

Example:

   ## lookup:CarManufacturer
   BMW
   VW
   Dacia
   Ford
   ...

Hi, you can do it by adding the lookup table to nlu via json:

{
    "domain": "{your_domain}",
    "config": "{your_config}",
    "nlu": "## intent:example\n## lookup:CarManufacturer\n- BMW\n- VW\n- Dacia\n- Ford",
    "stories": "{your_stories}",
    "force": false,
    "save_to_default_model_directory": true
}
1 Like