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

Added deprel transition sets

parent c1c2761c
Branches
No related tags found
No related merge requests found
...@@ -153,8 +153,12 @@ if __name__ == "__main__" : ...@@ -153,8 +153,12 @@ if __name__ == "__main__" :
print("<parser> standard_RIGHT_rel", file=output) print("<parser> standard_RIGHT_rel", file=output)
print("<parser> standard_SHIFT", file=output) print("<parser> standard_SHIFT", file=output)
output.close() output.close()
output = open("deprel.ts", 'w', encoding='utf-8') output = open("deprel_left.ts", 'w', encoding='utf-8')
for label in labelsList : 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() output.close()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment