Reduce 0 and 1 working, todo reduce 5.

This commit is contained in:
voje
2019-04-05 16:45:40 +02:00
parent 6415da588d
commit 50af2e0215
5 changed files with 12 additions and 5 deletions

View File

@@ -28,7 +28,10 @@ def frames_from_db_entry(dbent):
tids=[_full_tid(srl["to"])]
) for srl in srlarr
],
sentences=[(dbent["sid"], dbent["tokens"])], # [(ssj_id, {word: _, lemma: _, msd: _}), ...]
# sentences=[(dbent["sid"], dbent["tokens"])],
sentences=[
[(_full_tid(t["tid"]), t)for t in dbent["tokens"]],
]
)]
return frames