basabuuka_prototyp/Prototyp/Use_SolveShorts.py

29 lines
457 B
Python
Raw Normal View History

2020-08-16 19:36:44 +02:00
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))