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

Added script to get text from conll format

parent 66467b23
Branches
No related tags found
No related merge requests found
#! /usr/bin/python
import sys
def printUsageAndExit() :
print("Usage : %s file.conllu delimiterSymbol"%sys.argv[0])
exit(1)
if __name__ == "__main__" :
if len(sys.argv) != 3 :
printUsageAndExit()
for line in open(sys.argv[1]) :
if len(line.strip()) < 2 :
continue
if line.startswith("# text") :
print(line.strip()[9:], end=sys.argv[2])
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment