basabuuka_prototyp/Prototyp/Use_ConjunctSolve.py

24 lines
459 B
Python
Raw Normal View History

2020-08-16 19:36:44 +02:00
from ConjunctSolve import *
from oi import *
cs = ConjunctSolve(None,None)
#cs.create_hklDB_from_csv('Indikativ_Conjunktiv.txt', None)
#print(cs.hkldbIndi_Conju1)
cs.load_DB_into_FASTsearch()
oi = oi()
sentences = oi.ReadDoc2Sent('test1')
#sentences = [['Er', 'habe', 'es', 'nicht', 'schön'],['Sie', 'sei', 'gezeichnet', 'worden'],['Er', 'ging', 'nicht', 'langsam'],['Es', 'habe', 'sich', 'verheddert']]
print(cs.replaceConjunctives(sentences))