How to insert hashtag character in nlu.yml but do not comment

Hi,

In my nlu.yml I have feature names containing a “#” character, ex:

- intent: getName
  examples: | 
    - I want the name of device [#2](deviceName)
    - I want the name of device [Hello #3](deviceName)

Is this the correct way to do it?

Best

Just put the value inside single or double quotes and it won’t be treated like a comment:

- intent: getName
  examples: | 
    - "I want the name of device [#2](deviceName)"
    - "I want the name of device [Hello #3](deviceName)"

Thanks @ChrisRahme :slight_smile:

1 Like