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

from SayYes import *
from oi import *
sy = SayYes(None, None)
#sy.create_hklDB_from_csv('Gegenwoerter.csv')
#print(sy.hkldbOpposites1)
sy.load_DB_into_FASTsearch()
oi = oi()
sentences = oi.ReadDoc2Sent('test1')
#sentences = [['Er', 'war', 'wirklich', 'nicht', 'schn'],['Sie', 'ist', 'keine', 'hliche', 'Frau'],['Er', 'ging', 'nicht', 'langsam']]
print(sy.replaceOpposites(sentences))