用于自然语言处理(NLP)和文本分析的开源工具包

天问 1ea77f9c08 Update 'README.md' 1 month ago
README.md 1ea77f9c08 Update 'README.md' 1 month ago

README.md

nltk

用于自然语言处理(NLP)和文本分析的开源工具包

Usage

import nltk

for word in nltk.word_tokenize(question):
    pass
    
nltk.download('punkt')
nltk.download('nps_chat')
posts = nltk.corpus.nps_chat.xml_posts()