Browse Source

Update 'README.md'

天问 1 year ago
parent
commit
1ea77f9c08
1 changed files with 16 additions and 1 deletions
  1. 16 1
      README.md

+ 16 - 1
README.md

@@ -1,3 +1,18 @@
 # nltk
 
-用于自然语言处理(NLP)和文本分析的开源工具包
+用于自然语言处理(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()
+
+```