Comment in entity lookup yaml files

Hi,

I have created a separate yml file (next to my training data) for an entity lookup table. I have added some comments within the examples in the following way:

version: "2.0"
nlu:
  - lookup: athlete
    examples: |
      #################### Swimming
      - Joe
      #################### Tennis
      - George
      #################### Soccer
      - Peter

When I am checking this file with a yaml checker, it looks perfectly ok, but Rasa gives warnings during training and during startup as well: “/usr/local/lib/python3.8/dist-packages/rasa/shared/utils/io.py:97: UserWarning: Issue found while processing ‘./data/entity.yml’: The item ‘athlete’ contains an example that doesn’t start with a ‘-’ symbol: #################### Swimming” Although it looks like, that the entity recognition works fine, I would like to eliminate these warnings. I would like to ask some help, or suggestion how write these comments correctly!

Thanks

Can you try this?

version: "2.0"
nlu:
  - lookup: athlete
    examples: |
#################### Swimming
      - Joe
#################### Tennis
      - George
#################### Soccer
      - Peter

Thanks for the suggestion, but this syntax not working at all, Rasa gives an error: “expected , but found ‘’” By the way, this syntax is not accepted by a YAML syntax checker either (bad indentation of a mapping entry)…

1 Like