def brown_data():
"""return the text_length first tokens of the brown corpus tagged in pyrata format"""
tokens = brown.words()
tokens = tokens[:text_length]
pos_tags = nltk.pos_tag(tokens)
return [{'raw':w, 'pos':p} for (w, p) in pos_tags]
# """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
# TEST
# """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
# """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
评论列表
文章目录