We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2906cf commit c5f1180Copy full SHA for c5f1180
bmstparser/src/parser.py
@@ -58,6 +58,12 @@
58
else:
59
os.system(
60
'python src/utils/evaluation_script/conll17_ud_eval.py -v -w src/utils/evaluation_script/weights.clas ' + options.conll_test + ' ' + testpath + ' > ' + testpath + '.txt')
61
+ with open(testpath + '.txt', 'rb') as f:
62
+ for l in f:
63
+ if l.startswith('UAS'):
64
+ print 'UAS:%s' % l.strip().split()[-1]
65
+ elif l.startswith('LAS'):
66
+ print 'LAS:%s' % l.strip().split()[-1]
67
68
print 'Preparing vocab'
69
words, w2i, pos, rels = utils.vocab(options.conll_train)
0 commit comments