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