コード例 #1
0
ファイル: structures.py プロジェクト: rajsukanya/final_fiona
 def _user_string(story_step_element: UserUttered,
                  e2e: bool,
                  prefix: Text = "") -> Text:
     return "* {}{}\n".format(prefix,
                              story_step_element.as_story_string(e2e))
コード例 #2
0
 def _text_is_real_message(user_utterance: UserUttered) -> bool:
     return (not user_utterance.intent
             or user_utterance.text != user_utterance.as_story_string())
コード例 #3
0
ファイル: structures.py プロジェクト: rajsukanya/final_fiona
 def _checkpoint_string(story_step_element: UserUttered) -> Text:
     return "> {}\n".format(story_step_element.as_story_string())