basabuuka_prototyp/Prototyp/Use_GenitivSolve.py

18 lines
339 B
Python
Raw Normal View History

2020-08-16 19:36:44 +02:00
from GenitivSolve import *
from oi import *
oi = oi()
sentences = oi.ReadDoc2Sent('test1')
#sentences = [['Der', 'Hund', 'der', 'Frau', 'freute', 'sich'], ['Es', 'war', 'das', 'Haus', 'des', 'Nachbars', 'welches', 'brannte']]
gs = GenitivSolve()
output = gs.ReplaceGenitivWithDativ(sentences)
print('out of genitivsolve ',output)