Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rasa train nlu accepts domain #6913

Merged
merged 15 commits into from
Oct 7, 2020
Merged

rasa train nlu accepts domain #6913

merged 15 commits into from
Oct 7, 2020

Conversation

degiz
Copy link
Contributor

@degiz degiz commented Oct 5, 2020

Closes #6635

Proposed changes:

  • rasa train nlu accepts domain

Status (please check what you already did):

  • added some tests for the functionality
  • updated the documentation
  • updated the changelog (please check changelog for instructions)
  • reformat files using black (please check Readme for instructions)

@degiz degiz requested a review from wochinge October 5, 2020 16:48
@wochinge
Copy link
Contributor

wochinge commented Oct 5, 2020

I'll review tomorrow as it's too late today. If that's too late, please request somebody else :-)

@degiz
Copy link
Contributor Author

degiz commented Oct 5, 2020

No rush, it will wait for you 😄

@degiz degiz changed the base branch from master to 2.0.x October 6, 2020 07:17
data/test_nlu_no_responses/nlu_no_responses.yml Outdated Show resolved Hide resolved
rasa/cli/train.py Show resolved Hide resolved
@@ -46,6 +46,7 @@ def set_train_core_arguments(parser: argparse.ArgumentParser):

def set_train_nlu_arguments(parser: argparse.ArgumentParser):
add_config_param(parser)
add_domain_param(parser, default=None)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why making the default None? get_validated_path does a lot of magic and would automatically set it to None in case the default path does not exist.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So that it's None in rasa train nlu --help, because we don't want to change the default behaviour.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why don't we wanna join the default behavior? And it doesn't change the default behavior anyway, right?

tests/test_train.py Outdated Show resolved Hide resolved
tests/test_train.py Outdated Show resolved Hide resolved
tests/test_train.py Outdated Show resolved Hide resolved
tests/test_train.py Outdated Show resolved Hide resolved
@degiz degiz requested a review from wochinge October 6, 2020 10:05
data/test_config/config_response_selector_minimal.yml Outdated Show resolved Hide resolved
@@ -46,6 +46,7 @@ def set_train_core_arguments(parser: argparse.ArgumentParser):

def set_train_nlu_arguments(parser: argparse.ArgumentParser):
add_config_param(parser)
add_domain_param(parser, default=None)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why don't we wanna join the default behavior? And it doesn't change the default behavior anyway, right?

rasa/cli/train.py Show resolved Hide resolved
rasa/train.py Outdated Show resolved Hide resolved
tests/test_train.py Outdated Show resolved Hide resolved
tests/test_train.py Outdated Show resolved Hide resolved
tests/test_train.py Outdated Show resolved Hide resolved
tests/test_train.py Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Domain should be made available for rasa train nlu command if it's available
3 participants