You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

28 lines
457 B

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))