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

Separate sequence and sentence features #6045

Merged
merged 80 commits into from
Jun 26, 2020
Merged

Separate sequence and sentence features #6045

merged 80 commits into from
Jun 26, 2020

Conversation

tabergma
Copy link
Contributor

@tabergma tabergma commented Jun 19, 2020

Proposed changes:

  • Separate sequence and sentence features.
  • DIET process sequence and sentence features independently. The features are concatenated just before the transformer.
  • This allows us to have different kind of features for the sequence and the sentence.
  • LexicalSyntacticFeaturizer does not produce sentence features anymore.
  • ConveRTFeaturizer does not duplicate the sequence features anymore as they don't need to fit the size of the sentence features anymore.

closes https://github.com/RasaHQ/research/issues/79

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)

@tabergma tabergma requested a review from Ghostvv June 25, 2020 09:49
Copy link
Contributor

@Ghostvv Ghostvv left a comment

Choose a reason for hiding this comment

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

looks good. Let's update sequence_lengths calculation for clarity, because there is no need to calculate it for sentence features

rasa/nlu/classifiers/diet_classifier.py Outdated Show resolved Hide resolved
@tabergma
Copy link
Contributor Author

@Ghostvv Update the PR, looks fine from my side now. Currently testing one more time a couple of configurations locally.

@tabergma tabergma requested a review from Ghostvv June 26, 2020 07:52
rasa/nlu/classifiers/diet_classifier.py Outdated Show resolved Hide resolved
rasa/nlu/classifiers/diet_classifier.py Outdated Show resolved Hide resolved
Copy link
Contributor

@Ghostvv Ghostvv left a comment

Choose a reason for hiding this comment

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

looks good! left a comment about label default features

rasa/nlu/classifiers/diet_classifier.py Show resolved Hide resolved
@tabergma tabergma merged commit 88ad06f into master Jun 26, 2020
@tabergma tabergma deleted the nlu-configuration branch June 26, 2020 09:10
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.

2 participants