Depreciated Training format

Hello!! As I am trying to create a simple bot to get familiar with the features. While training I am getting the Warning: ‘’’ You are using the deprecated training data format to declare synonyms. Please use the following format: [< entity-text >]{“entity”: “”, “value”: “”}.’’’

Can someone please clarify this error to me.

Hi @Rahuja23,

with Rasa 1.10.0 the new training format has been introduced to support a more detailed way if defining entities alongside roles and groups. With the documentation, there comes a command:

sed -i -E 's/\[([^)]+)\]\(([^)]+):([^)]+)\)/[\1]{"entity": "\2", "value": "\3"}/g' nlu.md

that converts your current data to the new version - which actually helps you to understand the changes.

If you need help with that, feel free to ask!

Kind regards
Julian

hi @JulianGerhard,

actually, I have a related issue according to this topic.

I paste the command into my cmd but after doing this nothing changes. My entites stay in the earlier format…

Do you have any recommendations how I can fix this problem? May I just missed anything for the command?

Thanks in regard for your response.

King regards Tobias

Hi @Tobias,

can you try the following:

sed -i -E 's/\[([^]]*)\]\(([^:]*):([^)]*)\)/\[\1\]\{"entity": "\2", "value": "\3"\}/g' nlu.md

I am not exactly sure but it seems that there is a small bug in the regex.

Feel free to ask again if thats not working.

Kind regards, Julian