18 lines
339 B
Python
18 lines
339 B
Python
|
|
||
|
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)
|