Look up error

Can anyone tell me correct syntax of the lookup

nlu.yml

  • lookup: name

files: |

- data/lookup/name_list.txt 

error:

(rasacb) C:\Users\SHANVIJ\rasacb>rasa train

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:176: Key ‘lookup’ was not defined. Path: ‘/nlu/18’

in data\nlu.yml:176: Key ‘files’ was not defined. Path: ‘/nlu/18’

Hey @Shan, in Rasa 2.x the format is slightly different, check out the docs here. Note that in Rasa 2.x you can have data across many files, so you can still keep the actual lookup examples in multiple files like you’d do in Rasa 1.x, but each of these files has to follow the format in the docs and you’ll no longer have a file that explicitly lists all the individual lookup files :slight_smile: