Skip to content
Snippets Groups Projects
Commit 3e832ec8 authored by Franck Dary's avatar Franck Dary
Browse files

Changed some transitions

parent 3008ab4a
Branches
No related tags found
No related merge requests found
...@@ -38,7 +38,7 @@ tokenizer.ts: all_no_test.conllu ...@@ -38,7 +38,7 @@ tokenizer.ts: all_no_test.conllu
segmenter.ts: segmenter.ts:
echo "EOS b.0" > $@ echo "EOS b.0" > $@
echo "NOTHING" >> $@ echo "NOTEOS b.0" >> $@
sed -i -e 's/^/<segmenter> /' $@ sed -i -e 's/^/<segmenter> /' $@
transitions: all_no_test.conllu transitions: all_no_test.conllu
......
...@@ -90,11 +90,11 @@ if __name__ == "__main__" : ...@@ -90,11 +90,11 @@ if __name__ == "__main__" :
print("<lemmatizer_rules> TRANSFORMSUFFIX FORM b.0 LEMMA b.0 %s"%rule, file=output) print("<lemmatizer_rules> TRANSFORMSUFFIX FORM b.0 LEMMA b.0 %s"%rule, file=output)
output.close() output.close()
output = open("lemmatizer_case.ts", 'w', encoding='utf-8') 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> UPPERCASEINDEX LEMMA b.0 0", file=output)
print("<lemmatizer_case> UPPERCASE LEMMA b.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> LOWERCASEINDEX LEMMA b.0 0", file=output)
print("<lemmatizer_case> LOWERCASE LEMMA b.0", file=output) print("<lemmatizer_case> LOWERCASE LEMMA b.0", file=output)
print("<lemmatizer_case> NOTHING", file=output)
output.close() output.close()
if "DEPREL" in col2index : if "DEPREL" in col2index :
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment