Python으로 배우는 Natural Language Processing (NLP)
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', '!']

Python으로 배우는 Natural Language Processing (NLP)