modifying frames api

This commit is contained in:
2019-03-28 19:17:45 +01:00
parent d84ad9e163
commit 1f83f96267
10 changed files with 529 additions and 66 deletions

View File

@@ -73,7 +73,7 @@ class Slot():
# It consists of different tokens.
def __init__(self, functor, tids=None, count=None):
self.functor = functor
self.tids = tids or []
self.tids = tids or [] # combining multiple sentences vertically
self.count = count or 1
def to_string(self):

View File

@@ -10,6 +10,9 @@ log = logging.getLogger(__name__)
SENSE_UNDEFINED = "nedefinirano"
## TIDI: use frame.py
## TODO: build a list of [Frame] with lists of [Slot]
def sorted_by_len_tids(frames):
return sorted(