From 7441fce7ba68474798ae9b46e26b28ce0b2d992b Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Mon, 26 Feb 2018 14:59:56 +0100 Subject: [PATCH] Fix undefined variable in conllu script --- examples/training/conllu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/training/conllu.py b/examples/training/conllu.py index 290049e24..45c55a1e8 100644 --- a/examples/training/conllu.py +++ b/examples/training/conllu.py @@ -250,7 +250,7 @@ def get_token_conllu(token, i): n = 1 while token.nbor(n)._.inside_fused: n += 1 - id_ = '%d-%d' % (k, k+n) + id_ = '%d-%d' % (i, i+n) lines = [id_, token.text, '_', '_', '_', '_', '_', '_', '_', '_'] else: lines = []