การประมวลผลภาษาธรรมชาติ (NLP) ด้วย Python
Fouad Trad
Machine Learning Engineer


ช่วยให้คอมพิวเตอร์วิเคราะห์ภาษาของมนุษย์ได้









import nltknltk.download('punkt_tab')text = "NLP is fun. Let's dive into it!"sentences = nltk.sent_tokenize(text)print(sentences)
["NLP is fun.", "Let's dive into it!"]

text = "Claim your free prize now!"words = nltk.word_tokenize(text)print(words)
['Claim', 'your', 'free', 'prize', 'now', '!']

การประมวลผลภาษาธรรมชาติ (NLP) ด้วย Python