Created
April 7, 2018 09:14
-
-
Save jgontrum/a503cb7309470f7ea061f2aa804f2df0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sys import stdin | |
if __name__ == '__main__': | |
i = 1 | |
for line in stdin: | |
if not line.strip(): | |
print() | |
i = 1 | |
continue | |
token, pos, dep, dep_label = line.strip().split() | |
print("\t".join([ | |
str(i), token, '_', pos, pos, '_', dep, dep_label, '_', '_'])) | |
i += 1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-> https://maryszmary.github.io/ud-annotatrix/standalone/annotator.html