Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

        def unescape(s):
    r = s
    for _from, to in PTB_ESCAPES.iteritems():
        r = r.replace(to, _from)
    return r

src/b/r/brat-HEAD/server/src/convert/stanford.py   brat(Download)
from xml.etree import ElementTree
from ptbesc import unescape as ptb_unescape
        # Note: Since Stanford actually doesn't do all the escapings properly
        # this will sometimes fail! Hint: Try "*/\*".
        unesc_word = ptb_unescape(tok.word)
        text[tok.start:len(unesc_word)] = unesc_word