mirror of https://github.com/gsi-upm/senpy
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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'
|
|
}
|
|
}]
|