question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

rasa: error: unrecognized arguments: --data data/nlu.md

See original GitHub issue

Rasa version: current master branch, 1.0.0a3 and 1.0.0a2 and possibly earlier

Python version: Python 3.6.8 :: Anaconda, Inc.

Operating system (windows, osx, …): Windows 10 Enterprise

Issue:

I get the following error when I run the example in the Rasa online documentation:

https://rasa.com/docs/get_started_step2/

C:\Users\xxxxxxxx\AppData\Local\Continuum\anaconda3\envs\rasa\python.exe C:/Dev/Rasa/rasa/rasa train nlu -c config/nlu_config.yml --data data/nlu.md -o models --verbose
usage: rasa [-h] [--version]
            {init,run,shell,train,interactive,test,show,data,x} ...
rasa: error: unrecognized arguments: --data data/nlu.md

Process finished with exit code 2

I get the same error when I run it in a Jupyter notebook or in PyCharm IDE. I have tried to search the source code and debug it myself, but I’m not quite familiar enough with the project code to find it. I have also done a quick search in the branch (master) to see if this command line argument has been changed since the version in the documentation, but I don’t see anything there.

Content of configuration file (config.yml): Unedited

language: en

pipeline: supervised_embeddings

policies:
  - name: KerasPolicy
    epochs: 200
    batch_size: 50
    max_training_samples: 300
  - name: FallbackPolicy
    fallback_action_name: 'action_default_fallback'
  - name: MemoizationPolicy
    max_history: 5
  - name: MappingPolicy

Content of domain file (domain.yml) (if used & relevant): Unedited

allowempty: True
mapping:
  intents:
    type: "seq"
    sequence:
    - type: "map"
      mapping:
        use_entities:
          type: "bool"
      allowempty: True
    - type: "str"
  entities:
    type: "seq"
    sequence:
    - type: "str"
  actions:
    type: "seq"
    sequence:
    - type: "str"
      required: True
  templates:
    type: "map"
    allowempty: True
  slots:
    type: "map"
    allowempty: True
  forms:
    type: "seq"
    sequence:
    - type: "str"
    allowempty: True

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

6reactions
erohmensingcommented, May 3, 2019

@tpacker if you check out rasa train nlu --help, you’ll find that rasa train nlu takes the argument -u for nlu data instead of --data. rasa train takes --data (I ran into this exact issue yesterday).

AFAIK the Get Started is still setup with the old python -m ... commands – it’s fine for you to follow it and change the commands to reflect master, but you should know that if you want to run a full model in the end, you should train it with rasa train, instead of separately doing rasa train nlu and rasa train core. Same with rasa run instead of rasa run core with the full model.

0reactions
erohmensingcommented, May 3, 2019

Awesome, we love contributors! I’m sure you’ll have lots of great stuff to add, but it’s definitely easier to get used to stuff in the stable versions than the master version. We are in the process updating the format of the quickstart, which is why it is not available yet.

As for the Can not train an intent classifier error you ran into, if you do have more than one intent, this may be a bug on master, as I may have seen other people running into that too. We’ll look into it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Rasa train nlu --data not working
version: Rasa 1.2.5 according to the docs it is ... Rasa train nlu --data not working ... rasa: error: unrecognized arguments: --data ......
Read more >
Rasa core train command: unrecognized arguments
I am new to Rasa as well as stack Overflow, any help would be appreciated as I am unable to figure out this...
Read more >
How to create Chatbot using RASA - Medium
Run the code cell below to see the NLU training data created by the rasa init command: cat data/nlu.md. run. The lines starting...
Read more >
Dbt run return `unrecognized arguments` using --vars - Airbyte
Description: I created a specific dbt transformation at GitHub - OpenSourcePolitics/dbt_decidim, to transform data from a postgres database to ...
Read more >
A Beginner's Guide to Rasa NLU for Intent Classification and ...
yml: Configuration of your NLU and Core models; credentials.yml: Details for connecting to other services; data/nlu.md: Your NLU training data ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found