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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user