1
0
mirror of https://github.com/gsi-upm/senpy synced 2025-11-06 10:08:16 +00:00

Last batch of big changes

* Add Box plugin (i.e. black box)
* Add SentimentBox, EmotionBox and MappingMixin
* Refactored CustomDict
This commit is contained in:
J. Fernando Sánchez
2018-01-06 18:51:16 +01:00
parent 21a5a3f201
commit 3e2b8baeb2
15 changed files with 499 additions and 165 deletions

View File

@@ -15,7 +15,8 @@ from senpy.models import (Emotion,
SentimentPlugin,
Plugins,
from_string,
from_dict)
from_dict,
subtypes)
from senpy import plugins
from pprint import pprint
@@ -134,6 +135,11 @@ class ModelsTest(TestCase):
s = str(r)
assert "_testing" not in s
def test_serialize(self):
for k, v in subtypes().items():
e = v()
e.serialize()
def test_turtle(self):
"""Any model should be serializable as a turtle file"""
ana = EmotionAnalysis()