<filename>odette/scripts/transform_file.py<gh_stars>1-10
#!/usr/bin/env python
#==============================================================================
#author         :<NAME>
#email          :<EMAIL>
#date           :2015/12/30
#version        :1.0
#description    :Perform a transformation on a file
#usage          :python transform_file.py infile outfile [transform|detransform|to_conllx]
#Python version :2.7.6
#==============================================================================


import sys
from src.treebank_transformer import TreebankTransformer

if __name__=="__main__":
    infile = sys.argv[1]
    out = sys.argv[2]
    change = sys.argv[3]
    #dep_style = 'pdt'
    dep_style = 'ud'
    TM = TreebankTransformer(dep_style=dep_style)
    TM.transform(infile,out,change)

<filename>odette/scripts/transform_file.py<gh_stars>1-10
#!/usr/bin/env python
#==============================================================================
#author         :<NAME>
#email          :<EMAIL>
#date           :2015/12/30
#version        :1.0
#description    :Perform a transformation on a file
#usage          :python transform_file.py infile outfile [transform|detransform|to_conllx]
#Python version :2.7.6
#==============================================================================


import sys
from src.treebank_transformer import TreebankTransformer

if __name__=="__main__":
    infile = sys.argv[1]
    out = sys.argv[2]
    change = sys.argv[3]
    #dep_style = 'pdt'
    dep_style = 'ud'
    TM = TreebankTransformer(dep_style=dep_style)
    TM.transform(infile,out,change)

#!/usr/bin/env python #============================================================================== #author         :<NAME> #email          :<EMAIL> #date           :2015/12/30 #version        :1.0 #description    :Perform a transformation on a file #usage          :python transform_file.py infile outfile [transform|detransform|to_conllx] #Python version :2.7.6 #============================================================================== #dep_style = 'pdt'