RasaHQ / rasa

💬 Open source machine learning framework to automate text- and voice-based conversations: NLU, dialogue management, connect to Slack, Facebook, and more - Create chatbots and voice assistants
https://rasa.com/docs/rasa/
Apache License 2.0
18.94k stars 4.64k forks source link

NLU test comparison mode doesn't accept a folder #4169

Closed MetcalfeTom closed 5 years ago

MetcalfeTom commented 5 years ago

With all_configs as a folder:

rasa test nlu -u dataset/full.json --config all_configs
2019-08-05 01:58:51 INFO     rasa.cli.test  - Multiple configuration files specified, running nlu comparison mode.

Traceback (most recent call last):
  File "/Users/tom/Documents/RASA/rasa/rasa/utils/io.py", line 130, in read_file
    with open(filename, encoding=encoding) as f:
FileNotFoundError: [Errno 2] No such file or directory: '/Users/tom/Documents/RASA/wordpieces/pretrained_spacy.yml'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/tom/miniconda3/bin/rasa", line 11, in <module>
    load_entry_point('rasa', 'console_scripts', 'rasa')()
  File "/Users/tom/Documents/RASA/rasa/rasa/__main__.py", line 76, in main
    cmdline_arguments.func(cmdline_arguments)
  File "/Users/tom/Documents/RASA/rasa/rasa/cli/test.py", line 123, in test_nlu
    io_utils.read_file(file),
  File "/Users/tom/Documents/RASA/rasa/rasa/utils/io.py", line 133, in read_file
    raise ValueError("File '{}' does not exist.".format(filename))
ValueError: File '/Users/tom/Documents/RASA/wordpieces/pretrained_spacy.yml' does not exist.

Seems the config folder name is dropped somewhere (the path should be /Users/tom/Documents/RASA/wordpieces/all_configs/pretrained_spacy.yml)

wochinge commented 5 years ago

@MetcalfeTom I can't reproduce it 🙈 Works fine for me. maybe some wrong permissions or so?

wochinge commented 5 years ago

@MetcalfeTom Now I can reproduce it. Thanks!