From 3761f8b253979791a3de84739b8b9d36517f80da Mon Sep 17 00:00:00 2001 From: Cyprian Laskowski Date: Fri, 8 Jan 2021 09:58:39 +0100 Subject: [PATCH] IssueID #1487: fixed regexp --- scripts/tweak_conllu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/tweak_conllu.py b/scripts/tweak_conllu.py index 96215fd..8ccaec8 100644 --- a/scripts/tweak_conllu.py +++ b/scripts/tweak_conllu.py @@ -29,7 +29,7 @@ for line in input_file: if (line[0].isdigit()): output_map['tokens'].append(line.strip()) else: - match = re.search('^# (.+) = (.+)$', line) + match = re.search('^# (.+?) = (.+)$', line) if (match): (name, value) = match.groups() if (name == 'newpar id'):