How to add text files to nlu training dataset

Hi All I’m looking for some help on something that is probably super simple but I’m overlooking it.

In Rasa 1 if you wanted to add a text file to a lookup table for NER it was pretty easy. Something like:

## lookup:additional_currencies  

I am struggling on how to do this for rasa 2.0.

I have the following: A file in the data folder called client_names.txt with names of clients

- lookup: client_name
  files: |
    - data/client_name.txt

every time I run rasa train I get:

YamlValidationException: Failed to validate ‘data/nlu.yml’. Please make sure the file is correct and all mandatory parameters are specified. Here are the errors found during validation: in data/nlu.yml:676: Key ‘lookup’ was not defined. Path: ‘/nlu/49’ in data/nlu.yml:676: Key ‘files’ was not defined. Path: ‘/nlu/49’

Any ideas on how to fix this?


You can use this code to convert from .txt to the lookup format.