|
|
from SolveShorts import *
|
|
|
|
from oi import *
|
|
|
|
|
|
|
|
|
|
solSh = SolveShorts('hkldbShorts.hkl', 'hkldbShorts_All.hkl')
|
|
|
|
#solSh.create_hklDB_from_csv('Abkuerzungen.txt')
|
|
|
|
oi = oi()
|
|
|
|
sentences = oi.ReadDoc2Sent('test1')
|
|
|
|
#print(sentences)
|
|
|
|
#sentences = [['i.', 'd.', 'r.', 'geht', 'es', 'nach','Hause,','ab', 'Ende', 'd.','j.','nicht','mehr.']]
|
|
|
|
|
|
|
|
solSh.load_DB_into_FASTsearch()
|
|
|
|
|
|
#print(solSh.ShortsDB)
|
|
|
|
print(solSh.ExplainShortsInSentencesWithBrackets(sentences))
|