basabuuka_prototyp/Prototyp/Use_SayYes.py

24 lines
397 B
Python
Raw Normal View History

2020-08-16 19:36:44 +02:00
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))