mirror of
https://github.com/gsi-upm/senpy
synced 2024-11-14 04:32:29 +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'
|
||
|
}
|
||
|
}]
|