mirror of
https://github.com/gsi-upm/senpy
synced 2025-07-05 11:52:21 +00:00
* Added conversion plugins (API might change!) * Added conversion to the analysis pipeline * Changed behaviour of --default-plugins (it adds conversion plugins regardless) * Added emotionModel [sic] and emotionConversion models //TODO add conversion tests //TODO add conversion to docs
8 lines
182 B
Python
8 lines
182 B
Python
from senpy.plugins import SentimentPlugin
|
|
|
|
|
|
class DummyPlugin(SentimentPlugin):
|
|
def analyse_entry(self, entry, params):
|
|
entry.text = entry.text[::-1]
|
|
yield entry
|