mirror of
https://github.com/gsi-upm/senpy
synced 2024-10-31 23:41:41 +00:00
25 lines
472 B
Python
25 lines
472 B
Python
|
import noop
|
||
|
from senpy.plugins import SentimentPlugin
|
||
|
|
||
|
|
||
|
class NoOp(SentimentPlugin):
|
||
|
'''This plugin does nothing. Literally nothing.'''
|
||
|
|
||
|
version = 0
|
||
|
|
||
|
def analyse_entry(self, entry, *args, **kwargs):
|
||
|
yield entry
|
||
|
|
||
|
def test(self):
|
||
|
print(dir(noop))
|
||
|
super(NoOp, self).test()
|
||
|
|
||
|
test_cases = [{
|
||
|
'entry': {
|
||
|
'nif:isString': 'hello'
|
||
|
},
|
||
|
'expected': {
|
||
|
'nif:isString': 'hello'
|
||
|
}
|
||
|
}]
|