mirror of
https://github.com/gsi-upm/senpy
synced 2024-12-22 21:18:12 +00:00
54e4dcd5d4
This is still not functional, because it involves a LOT of changes to the basic structure of the project. Some of the main changes can be seen in the CHANGELOG.md file, if you're interested, but it boils down to simplifying the logic of plugins (no more activation/deactivation shenanigans), more robust typing and use of schemas (pydantic) to avoid inconsistencies and user errors.
11 lines
353 B
Python
11 lines
353 B
Python
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)
|