INNER CODE UNIT · Python
initiate_sentiment_analyser
keiffster/program-y · src/programy/bot.py:151
def initiate_sentiment_analyser(self):
if self.configuration.sentiment_analyser is not None:
self._sentiment_analyser, self._sentiment_scores = BaseSentimentAnalyser.initiate_sentiment_analyser(
self.configuration.sentiment_analyser)
@property
def brain(self):
return self._brain_factory.select_brain()
@property
def conversations(self) -> ConversationManager:
return self._conversation_mgr
@property
def default_response(self) -> str:
return self.configuration.default_response
@property