From 6fefbd732fa410be16f528d0f6217a3c4c3f2b48 Mon Sep 17 00:00:00 2001 From: Franck Dary <franck.dary@lis-lab.fr> Date: Fri, 19 Feb 2021 13:21:14 +0100 Subject: [PATCH] Added deprel transition sets --- UD_any/data/getTransitionSets.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/UD_any/data/getTransitionSets.py b/UD_any/data/getTransitionSets.py index 3145745..48292f2 100755 --- a/UD_any/data/getTransitionSets.py +++ b/UD_any/data/getTransitionSets.py @@ -153,8 +153,12 @@ if __name__ == "__main__" : print("<parser> standard_RIGHT_rel", file=output) print("<parser> standard_SHIFT", file=output) output.close() - output = open("deprel.ts", 'w', encoding='utf-8') + output = open("deprel_left.ts", 'w', encoding='utf-8') for label in labelsList : - print("deprel " + label, file=output) + print("<deprel_left> WRITE s.-1 DEPREL " + label, file=output) + output.close() + output = open("deprel_right.ts", 'w', encoding='utf-8') + for label in labelsList : + print("<deprel_right> WRITE s.0 DEPREL " + label, file=output) output.close() -- GitLab