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

4 years ago
  1. from SolveShorts import *
  2. from oi import *
  3. solSh = SolveShorts('hkldbShorts.hkl', 'hkldbShorts_All.hkl')
  4. #solSh.create_hklDB_from_csv('Abkuerzungen.txt')
  5. oi = oi()
  6. sentences = oi.ReadDoc2Sent('test1')
  7. #print(sentences)
  8. #sentences = [['i.', 'd.', 'r.', 'geht', 'es', 'nach','Hause,','ab', 'Ende', 'd.','j.','nicht','mehr.']]
  9. solSh.load_DB_into_FASTsearch()
  10. #print(solSh.ShortsDB)
  11. print(solSh.ExplainShortsInSentencesWithBrackets(sentences))