29 lines
457 B
Python
29 lines
457 B
Python
|
|
||
|
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))
|