コード例 #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
ファイル: nlp.py プロジェクト: merlinschumacher/prosaic
def match_punctuation(string):
    return match(punctuation_regex, string)