Fix undefined variable in conllu script

This commit is contained in:
Matthew Honnibal 2018-02-26 14:59:56 +01:00
parent 14f729c72a
commit 7441fce7ba
1 changed files with 1 additions and 1 deletions

View File

@ -250,7 +250,7 @@ def get_token_conllu(token, i):
n = 1 n = 1
while token.nbor(n)._.inside_fused: while token.nbor(n)._.inside_fused:
n += 1 n += 1
id_ = '%d-%d' % (k, k+n) id_ = '%d-%d' % (i, i+n)
lines = [id_, token.text, '_', '_', '_', '_', '_', '_', '_', '_'] lines = [id_, token.text, '_', '_', '_', '_', '_', '_', '_', '_']
else: else:
lines = [] lines = []