Warning: This document is for an old version of Rasa NLU. The latest version is 0.15.1.

Frequently Asked Questions

How many training examples do I need?

Unfortunately, the answer is it depends.

A good starting point is to have 10 examples for each intent and build up from there.

If you have intents that are easily confusable, you will need more training data. Accordingly, as you add more intents, you also want to add more training examples for each intent. If you quickly write 20-30 unique expressions for each intent, you should be good for the beginning.

The same holds true for entities. the number of training examples you will need depends on how closely related your different entity types are and how clearly entities are distinguishable from non-entities in your use case.

To assess your model’s performance, use the evaluation script.

Which version of Rasa NLU am I running?

To find out which Rasa version you are running, you can execute

python -c "import rasa_nlu; print(rasa_nlu.__version__);"

If you are using a virtual environment to run your python code, make sure you are using the correct python to execute the above code.

Why am I getting an UndefinedMetricWarning?

The complete warning is: UndefinedMetricWarning: F-score is ill-defined and being set to 0.0 in labels with no predicted samples. The warning is a result of a lack of training data. During the training the dataset will be splitted multiple times, if there are to few training samples for any of the intents, the splitting might result in splits that do not contain any examples for this intent.

Hence, the solution is to add more training samples. As this is only a warning, training will still succeed, but the resulting models predictions might be weak on the intents where you are lacking training data.

I have an issue, can you help me?

We’d love to help you. If you are unsure if your issue is related to your setup, you should state your problem in the Rasa Community Forum. If you found an issue with the framework, please file a report on github issues including all the information needed to reproduce the problem.

Does it run with python 3?

Yes it does, Rasa NLU supports python 2.7 as well as python 3.5 and 3.6. If there are any issues with a specific python version, feel free to create an issue or directly provide a fix.

Have questions or feedback?

We have a very active support community on Rasa Community Forum that is happy to help you with your questions. If you have any feedback for us or a specific suggestion for improving the docs, feel free to share it by creating an issue on Rasa NLU GitHub repository.