relevanceai.operations_new.emotion.transform
#
Add emotion.
Module Contents#
- class relevanceai.operations_new.emotion.transform.EmotionTransform(text_fields: list, model_name='Emanuel/bertweet-emotion-base', output_fields: list = None, min_score: float = 0.3, device: int = None, **kwargs)#
To write your own operation, you need to add: - name - transform
- property classifier(self)#
- analyze_emotion(self, text: str)#
Analyze sentiment
- property name(self)#
abstractproperty for name
- transform(self, documents)#
abstractmethod for transform