mirror of
https://github.com/gsi-upm/senpy
synced 2025-08-24 10:32:20 +00:00
WIP simpler pipeline
This commit is contained in:
@@ -3,7 +3,7 @@ from senpy.plugins import SentimentPlugin
|
||||
|
||||
class DummyPlugin(SentimentPlugin):
|
||||
def analyse_entry(self, entry, params):
|
||||
entry.text = entry.text[::-1]
|
||||
entry['nif:iString'] = entry['nif:isString'][::-1]
|
||||
entry.reversed = entry.get('reversed', 0) + 1
|
||||
yield entry
|
||||
|
||||
|
Reference in New Issue
Block a user