From 9b2ebb0f5f21c74b3d65a32556a643823232143b Mon Sep 17 00:00:00 2001 From: Dan Zeman Date: Sun, 12 Mar 2017 11:58:59 +0100 Subject: [PATCH] Be more tolerant to mistakes in input format. --- text_without_spaces.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/text_without_spaces.pl b/text_without_spaces.pl index 3ac8e3ccd..09cab8afe 100755 --- a/text_without_spaces.pl +++ b/text_without_spaces.pl @@ -15,11 +15,11 @@ ( 'input=s' => \$input ); -if($input =~ m/^conlluform/i) +if($input =~ m/^conllu?form/i) { process_conllu_forms(); } -elsif($input =~ m/^conllutext/i) +elsif($input =~ m/^conllu?text/i) { process_conllu_sentence_text(); }