Skip to content

Instantly share code, notes, and snippets.

@JustinaPetr
Last active June 19, 2019 09:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JustinaPetr/63e3e393fd407d59581b809bd0116c90 to your computer and use it in GitHub Desktop.
Save JustinaPetr/63e3e393fd407d59581b809bd0116c90 to your computer and use it in GitHub Desktop.
from rasa.nlu.components import Component
class SentimentAnalyzer(Component):
"""A pre-trained sentiment component"""
name = "sentiment"
provides = ["entities"]
requires = ["tokens"]
defaults = {}
language_list = ["en"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment