Ejemplo n.º 1
0
def process(inf, outf):
    for s in read_conllu(inf):
        if not isinstance(s, basestring): # skip comments and sentence breaks
            rewrite_feats(s)
        print >> outf, unicode(s)
def process(inf, outf):
    for s in read_conllu(inf):
        if not isinstance(s, basestring): # skip comments and sentence breaks
            remove_feats(s)
        print >> outf, unicode(s)
Ejemplo n.º 3
0
def process(inf, outf):
    for s in read_conllu(inf):
        if not isinstance(s, basestring):  # skip comments and sentence breaks
            normalize_lemma(s)
        print >> outf, unicode(s)
def process(inf, outf):
    for s in read_conllu(inf):
        print >> outf, unicode(s)
        if not isinstance(s, basestring):  # skip comments and sentence breaks
            add_aux(s, outf)
Ejemplo n.º 5
0
def process(inf, outf):
    for s in read_conllu(inf):
        print >> outf, unicode(s)
        if not isinstance(s, basestring): # skip comments and sentence breaks
            add_aux(s, outf)
Ejemplo n.º 6
0
def process(inf, outf):
    for s in read_conllu(inf):
        if not isinstance(s, basestring): # skip comments and sentence breaks
            normalize_lemma(s)
        print >> outf, unicode(s)