Ejemplo n.º 1
0
def match_punctuation(string):
    return match(punctuation_regex, string)
Ejemplo n.º 2
0
def words(sentence):
    tagged_sentence = tag(sentence)
    tagged_words = filter(lambda tu: match(word_tag_re, second(tu)), tagged_sentence)
    ws = map(first, tagged_words)
    return list(ws)
Ejemplo n.º 3
0
def match_punctuation(string):
    return match(punctuation_regex, string)