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
397 B

4 years ago
  1. from SayYes import *
  2. from oi import *
  3. sy = SayYes(None, None)
  4. #sy.create_hklDB_from_csv('Gegenwoerter.csv')
  5. #print(sy.hkldbOpposites1)
  6. sy.load_DB_into_FASTsearch()
  7. oi = oi()
  8. sentences = oi.ReadDoc2Sent('test1')
  9. #sentences = [['Er', 'war', 'wirklich', 'nicht', 'schn'],['Sie', 'ist', 'keine', 'hliche', 'Frau'],['Er', 'ging', 'nicht', 'langsam']]
  10. print(sy.replaceOpposites(sentences))