mirror of
https://github.com/gsi-upm/senpy
synced 2024-11-24 17:12:29 +00:00
9f6a6f5ecd
* 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
|