unitex-webservice/.ignore/sampleUsage.py

21 lines
367 B
Python

from unitexActions import UnitexActions
# reading data from database
with open('sample/corpus.txt') as f:
cc = f.read()
# using the tool
ua = UnitexActions(cc,'ptb')
ua.planAll_shortcut()
ua.executePlanning()
#ua2 = UnitexActions.reopen(ua.id)
#ua2 = UnitexActions.reopen(1)
#print(ua2._jsonable)
#UnitexActions.get_languages()
#UnitexActions.reopen_all()