From 4be71c6603b39fbb9eeb6a5d2aa32d5860eb6e50 Mon Sep 17 00:00:00 2001 From: Alexey Matveev <> Date: Tue, 13 Aug 2019 19:06:48 +0300 Subject: [PATCH] Fix inline variable j --- app/api/utils.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/api/utils.py b/app/api/utils.py index e7e42b80..2ecda302 100644 --- a/app/api/utils.py +++ b/app/api/utils.py @@ -278,10 +278,9 @@ class CoNLLParser(FileParser): words.append(word) - # Create JSONL - j = {'text': ' '.join(words), 'labels': labels} + # Create and add JSONL + data.append({'text': ' '.join(words), 'labels': labels}) - data.append(j) except conllu.parser.ParseException as e: raise FileParseException(line_num=-1, line=str(e))