Lookup table does not work at rasa 2.0

I am trying to use lookup table for entities but its not working… I am sharing my code. nlu.yml

  • lookup: loantype examples: |
    • Personal Loan
    • Education Loan

config.yml pipeline:

  • name: WhitespaceTokenizer
  • name: CRFEntityExtractor
  • name: LexicalSyntacticFeaturizer
  • name: CountVectorsFeaturizer
  • name: CountVectorsFeaturizer analyzer: char_wb min_ngram: 1 max_ngram: 4
  • name: DIETClassifier epochs: 100 entity_recognition: False
  • name: RegexEntityExtractor
  • name: EntitySynonymMapper

Whenever i am trying to train it giving the error like this:- YamlSyntaxException: Failed to read ‘data\nlu.yml’. while scanning a block scalar in “data\nlu.yml”, line 146, column 13 found a tab character where an indentation space is expected in “data\nlu.yml”, line 151, column 1

Please help me out and explain. thank you

@sssaha143 It seems there is tab or space in your nlu file at line 146 and 151 causing this indent error. Can you share your file?

nlu.yml (3.2 KB)

i checked yml formatting. but its fine i guess

nlu.yml (3.2 KB)

@sssaha143 please check this file, as expected it was a space error in your file it should work now.

you can use this website to check your yaml file : http://www.yamllint.com/