Convert config.yml from rasa1.x to rasa 2.x

Hi All, this is my rasa project’s config.yml file which was used for rasa 1.x. I want to change it for rasa 2.x accordingly. Can somebody help?

Current Rasa Version: Rasa Version : 2.8.7 Minimum Compatible Version: 2.8.0 Rasa SDK Version : 2.8.2 Rasa X Version : None Python Version : 3.8.10

@AnkitChouhan Sure, please see this blog : Migrating your Rasa 1.x assistant to Rasa 2.0 | The Rasa Blog | Rasa

You just need to change the .md file to .yml file and action.py will be same.

Note: the config.yml file will need to update manually if you are using some other configuration, I hope that make sense to you.

rasa data convert config
I hope this will solve your issue and good luck.

Note: The syntax of 1.x https://legacy-docs-v1.rasa.com is different as compared to 2.x Introduction to Rasa Open Source so make sure to use the right right code.

Tips: Your epochs for KerasPolicy is 600? make sure to check the pipelines and polices from the doc too Tuning Your NLU Model

Hi @nik202 , Thanks for the quick reply. The document is great but it didn’t specify about pipeline components. I want to know what is Rasa 2.x equivalent of ner_crf. Similarly for ner_synonyms, intent_featurizer_count_vectors and intent_classifier_tensorflow_embedding.

@AnkitChouhan did you tried the command?

@AnkitChouhan Everything is mentioned here: Components OR Tuning Your NLU Model

@nik202

Yes, this is what I get.

@AnkitChouhan Yes, I know this will be the error that why I suggest you to update manually.

@nik202 sorry but can you please help me in doing that. I don’t know how to do that manually.

@AnkitChouhan ok, can you tell what is your use case and which one you need to update?

@nik202 This is my company’s project which is running for almost 2-2.5 years on rasa 1.x. Now it need to be deployed using Rasa 2.x. There are almost 400-420 intents and 4.3K examples. I have converted the data, stories and rest other stuff to Rasa 2.0 Parameters but facing issue in converting config.yml file because some components are deprecated maybe or renamed. I want the same functionality as in the config.yml I pasted above but with Rasa 2.0(Like If KerasPolicy is deprecated then replace it with the new version of itself, if ner_crf is deprecated then replace it with the newer version). Sorry it maybe the silly question but is it possible?

@AnkitChouhan can you run the code, using rasa shell --debug and share the log, the error will help a lot.