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.
 
 
 
 
 
 

25 lines
592 B

from Passiv2Aktiv import *
from oi import *
p2a = Passiv2Aktiv(None, None, None)
#p2a.create_hklDB_from_csv('Zustandspassiv.txt', None)
#p2a.create_hklDB_from_csv('Vorgangspassiv.txt', None)
#p2a.create_hklDB_from_csv('Aktiv.txt', None)
p2a.load_DB_into_FASTsearch()
oi = oi()
sentences = oi.ReadDoc2Sent('test1')
#sentences = [['Die', 'beiden', 'und', 'er', 'wurden', 'in', 'der', 'Galerie', 'gezeichnet'], ['Stillschweigend', 'wird', 'sie', 'gezeichnet'],['Sie', 'wurden', 'in', 'der', 'Gemäldegalerie', 'wunderschön','gezeichnet']]
print(p2a.replacePassivForms(sentences))