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.

23 lines
459 B

4 years ago
  1. from ConjunctSolve import *
  2. from oi import *
  3. cs = ConjunctSolve(None,None)
  4. #cs.create_hklDB_from_csv('Indikativ_Conjunktiv.txt', None)
  5. #print(cs.hkldbIndi_Conju1)
  6. cs.load_DB_into_FASTsearch()
  7. oi = oi()
  8. sentences = oi.ReadDoc2Sent('test1')
  9. #sentences = [['Er', 'habe', 'es', 'nicht', 'schön'],['Sie', 'sei', 'gezeichnet', 'worden'],['Er', 'ging', 'nicht', 'langsam'],['Es', 'habe', 'sich', 'verheddert']]
  10. print(cs.replaceConjunctives(sentences))