Skip to content

Commit

Permalink
Fix docstrings errors
Browse files Browse the repository at this point in the history
  • Loading branch information
iurisevero committed May 13, 2021
1 parent d75fbd8 commit 4e9afa1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
10 changes: 8 additions & 2 deletions rasa/core/channels/hangouts.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,22 @@
logger = logging.getLogger(__name__)

CHANNEL_NAME = "hangouts"
CERT_URI = "https://www.googleapis.com/service_accounts/v1/metadata\
/x509/[email protected]"
CERT_URI = (
"https://www.googleapis.com/service_accounts/"
"v1/metadata/x509/[email protected]"
)


class HangoutsOutput(OutputChannel):
"""A Hangouts communication channel."""

@classmethod
def name(cls) -> Text:
"""Return channel name."""
return CHANNEL_NAME

def __init__(self) -> None:
"""Starts messages as empty dictionary"""
self.messages = {}

@staticmethod
Expand Down
1 change: 1 addition & 0 deletions rasa/nlu/classifiers/keyword_intent_classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ def _validate_keyword_map(self) -> None:
)

def process(self, message: Message, **kwargs: Any) -> None:
"""Set the message intent and add it to the output is it exists."""
intent_name = self._map_keyword_to_intent(message.get(TEXT))

confidence = 0.0 if intent_name is None else 1.0
Expand Down

0 comments on commit 4e9afa1

Please sign in to comment.