Exemple #1
0
def match_punctuation(string):
    return match(punctuation_regex, string)
Exemple #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)
Exemple #3
0
def match_punctuation(string):
    return match(punctuation_regex, string)