コード例 #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)
コード例 #2
0
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)
コード例 #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)
コード例 #4
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)
コード例 #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)
コード例 #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)