1
0
mirror of https://github.com/gsi-upm/senpy synced 2024-12-23 05:28:13 +00:00
senpy/example-plugins/moral/moral_plugin.py

11 lines
353 B
Python
Raw Normal View History

from senpy.ns import amor, amor_bhv, amor_mft, prov
from senpy.plugins import MoralityPlugin
class DummyMoralityPlugin(MoralityPlugin):
moralValueModel: str = amor_mft["MoralFoundationTHeory"]
def annotate(self, entry, activity, **kwargs):
yield MoralAnnotation(amor_bhv['Conservation'],
confidence=1.8)