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

Duckling - handle intervals #686

Merged
merged 4 commits into from
Nov 27, 2017
Merged

Duckling - handle intervals #686

merged 4 commits into from
Nov 27, 2017

Conversation

akelad
Copy link
Contributor

@akelad akelad commented Nov 13, 2017

Proposed changes:

  • ...

Status (please check what you already did):

  • made PR ready for code review
  • added some tests for the functionality
  • updated the documentation
  • updated the changelog

@akelad akelad requested a review from tmbo November 13, 2017 09:47
"additional_info": match["value"],
"entity": match["dim"]}

try:
Copy link
Member

Choose a reason for hiding this comment

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

Lets do the following:

  • put that code block before L104 and the entity object creation and store the extracted value in a tmp var
  • lets move that whole common code block to a function to be used by both components
  • I'd rather not do the try and except but rather decide where to get the value from using the match["value"]["type"] == "interval"

Copy link
Contributor Author

@akelad akelad Nov 13, 2017

Choose a reason for hiding this comment

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

which file should I put the function in ideally?

@tmbo tmbo merged commit 9082296 into master Nov 27, 2017
@tmbo tmbo deleted the interval-extraction branch November 27, 2017 14:55
taytzehao pushed a commit to taytzehao/rasa that referenced this pull request Jul 14, 2023
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