From 3e832ec88577ef59944a7d21d9a9e1c178e54dd8 Mon Sep 17 00:00:00 2001 From: Franck Dary <franck.dary@lis-lab.fr> Date: Tue, 7 Jul 2020 15:50:01 +0200 Subject: [PATCH] Changed some transitions --- UD_any/data/Makefile | 2 +- UD_any/data/getTransitionSets.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/UD_any/data/Makefile b/UD_any/data/Makefile index e869f10..f8896e0 100644 --- a/UD_any/data/Makefile +++ b/UD_any/data/Makefile @@ -38,7 +38,7 @@ tokenizer.ts: all_no_test.conllu segmenter.ts: echo "EOS b.0" > $@ - echo "NOTHING" >> $@ + echo "NOTEOS b.0" >> $@ sed -i -e 's/^/<segmenter> /' $@ transitions: all_no_test.conllu diff --git a/UD_any/data/getTransitionSets.py b/UD_any/data/getTransitionSets.py index 4a04170..3145745 100755 --- a/UD_any/data/getTransitionSets.py +++ b/UD_any/data/getTransitionSets.py @@ -90,11 +90,11 @@ if __name__ == "__main__" : print("<lemmatizer_rules> TRANSFORMSUFFIX FORM b.0 LEMMA b.0 %s"%rule, file=output) output.close() output = open("lemmatizer_case.ts", 'w', encoding='utf-8') + print("<lemmatizer_case> NOTHING LEMMA b.0", file=output) print("<lemmatizer_case> UPPERCASEINDEX LEMMA b.0 0", file=output) print("<lemmatizer_case> UPPERCASE LEMMA b.0", file=output) print("<lemmatizer_case> LOWERCASEINDEX LEMMA b.0 0", file=output) print("<lemmatizer_case> LOWERCASE LEMMA b.0", file=output) - print("<lemmatizer_case> NOTHING", file=output) output.close() if "DEPREL" in col2index : -- GitLab