fixed functor-frames

This commit is contained in:
2019-04-14 00:26:15 +02:00
parent 1b46ac9c22
commit 63041cc55b
6 changed files with 68 additions and 37 deletions

View File

@@ -50,6 +50,10 @@ class Frame():
self.sentences = sentences
self.aggr_sent = None # Dictionary { hw: self.sentences idx }
def get_functors(self):
return [slot.functor for slot in self.slots]
def to_json(self):
ret = {
"hw": self.hw,