This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import logging | |
| from rasa_core import config | |
| from rasa_core import utils | |
| from rasa_core.channels.slack import SlackInput | |
| from rasa_core.agent import Agent | |
| from rasa_core.interpreter import RasaNLUInterpreter | |
| from rasa_core.utils import EndpointConfig | |
| logfile = 'dialogue_model.log' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from rasa_core_sdk import Action | |
| import requests | |
| import json | |
| class ActionGetNewst(Action): | |
| def name(self): | |
| return 'action_get_news' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import logging | |
| from rasa_core import config | |
| from rasa_core import utils | |
| from rasa_core.agent import Agent | |
| from rasa_core.interpreter import RasaNLUInterpreter | |
| from rasa_core.utils import EndpointConfig | |
| logfile = 'dialogue_model.log' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| action_endpoint: | |
| url: "http://localhost:5055/webhook" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| policies: | |
| - name: KerasPolicy | |
| epochs: 100 | |
| max_history: 3 | |
| - name: MemoizationPolicy | |
| max_history: 3 | |
| - name: FallbackPolicy | |
| nlu_threshold: 0.1 | |
| core_threshold: 0.2 | |
| fallback_action_name: 'utter_default' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| slots: | |
| category: | |
| type: text | |
| entities: | |
| - category | |
| intents: | |
| - greet | |
| - fine_ask |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## fallback | |
| - utter_default | |
| ## greeting path 1 | |
| * greet | |
| - utter_greet | |
| ## fine path 1 | |
| * fine_normal | |
| - utter_help |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {'entities': [{'confidence': 0.7756870940230542, | |
| 'end': 39, | |
| 'entity': 'category', | |
| 'extractor': 'ner_crf', | |
| 'start': 34, | |
| 'value': 'world'}], | |
| 'intent': {'confidence': 0.7036955584872587, 'name': 'news'}, | |
| 'intent_ranking': [{'confidence': 0.7036955584872587, 'name': 'news'}, | |
| {'confidence': 0.08354613362606624, 'name': 'bye'}, | |
| {'confidence': 0.07291869896872455, 'name': 'fine_ask'}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import logging | |
| import pprint | |
| from rasa_nlu.training_data import load_data | |
| from rasa_nlu import config | |
| from rasa_nlu.model import Trainer | |
| from rasa_nlu.model import Interpreter | |
| from rasa_nlu.evaluate import run_evaluation | |
| logfile = 'nlu_model.log' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| language: "en" | |
| pipeline: "spacy_sklearn" |
NewerOlder