From 72ff9c508245cf1dbb664ebdc3c15813c501a859 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sun, 25 Jan 2015 02:20:49 +1100 Subject: [PATCH] * Update parser training script for tweaked parser API --- bin/parser/train.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/parser/train.py b/bin/parser/train.py index 40c62ff54..0b214a20c 100755 --- a/bin/parser/train.py +++ b/bin/parser/train.py @@ -135,7 +135,7 @@ def evaluate(Language, dev_loc, model_dir): for words, heads, labels, tags in sents: tokens = nlp.tokenizer.tokens_from_list(words) nlp.tagger(tokens) - nlp.parser.parse(tokens) + nlp.parser(tokens) for i, token in enumerate(tokens): #print i, token.string, i + token.head, heads[i], labels[i] if labels[i] == 'P' or labels[i] == 'punct':