26 lines
592 B
Python
26 lines
592 B
Python
|
|
||
|
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))
|
||
|
|