-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fix interactive story counter #15
Conversation
Co-authored-by: Rafael Teodosio <rafzteodosio@gmail.com>
Co-authored-by: joao vitor silva <joaovitordmrosa@hotmail.com>
Co-authored-by: Rafael Teodosio <rafzteodosio@gmail.com>
…ES/rasa into interactive-story-counter
Co-authored-by: Rafael Teodosio <rafzteodosio@gmail.com>
rasa/core/training/interactive.py
Outdated
@@ -75,6 +75,8 @@ | |||
|
|||
MAX_VISUAL_HISTORY = 3 | |||
|
|||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is made according to style sheet?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't remember doing that. I"ll change it.
rasa/core/training/interactive.py
Outdated
@@ -816,10 +818,15 @@ def _write_stories_to_file( | |||
else: | |||
append_write = "w" # make a new file if not | |||
|
|||
with open( | |||
export_story_path, "r", encoding=rasa.shared.utils.io.DEFAULT_ENCODING |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why you are using "r"? Maybe do something like append_write variable in line 819 is better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this code we are only reading the file to find the "interactive_story" string. There's no need to use append_write.
Co-authored-by: Rafael Teodosio <rafzteodosio@gmail.com>
…able Co-authored-by: Rafael Teodosio <rafzteodosio@gmail.com>
Co-authored-by: joao vitor silva <joaovitordmrosa@hotmail.com>
Co-authored-by: Rafael Teodosio <rafzteodosio@gmail.com>
Pull Request Test Coverage Report for Build 639324339
💛 - Coveralls |
Proposed changes:
Status:
black
(please check Readme for instructions)