Natural Language Processing
NLP enables computers to understand and generate human language.
Text Processing
text = "Hello, World! This is NLP."
tokens = text.lower().split()
# ["hello,", "world!", "this", "is", "nlp."]
Sentiment Analysis
from textblob import TextBlob
blob = TextBlob("I love this product!")
print(blob.sentiment.polarity) # positive score
Summary
- NLP covers text analysis, sentiment, translation
- Libraries: NLTK, spaCy, TextBlob
YouTip