Download presentation
Presentation is loading. Please wait.
Published byAubrey Austin Modified over 6 years ago
1
Text Analytics Giuseppe Attardi Università di Pisa
Introduction to NLTK Text Analytics Giuseppe Attardi Università di Pisa
2
Installing NLTK Download NLTK data Download and Install
Download NLTK data >>> import nltk >>> nltk.download()
3
Jupyter Notebook Register with your UniPi credentials to activate your free account for a G Suite at: this page. Astart your Jupyter Notebook here:
4
NLTK
5
NLTK Suite of classes for several NLP tasks
Parsing, POS tagging, classifiers… Several text processing utilities, corpora Brown, Penn Treebank corpus… Your data was divided into sentences using ‘punkt’
6
NLTK Text material Tools Resources Raw text Annotated Text
Part of speech taggers Semantic analysis Resources WordNet, Treebanks
7
Linguistic Tasks Part of Speech Tagging Parsing Word Net
Named Entity Recognition Information Retrieval Sentiment Analysis Document Clustering Topic Segmentation Classification Authoring Machine Translation Summarization Information Extraction Spoken Dialog Systems Natural Language Generation Word Sense Disambiguation
8
‘import nltk’ You will need to import the necessary modules to create objects and call member functions import ~ include objects from pre-built packages FreqDist, ConditionalFreqDist are in nltk.probability PlaintextCorpusReader is in nltk.corpus
9
Basic NLTK usage Load the notebook ‘Intro to NLTK’ using:
File > Open > Text Anaytics > Intro to NLTK Explore the examples by advancing through them with the button ►
10
Exercise 1. Run examples from Chapter 1 of NLTK book:
11
Exercise 2. Run examples from Chapter 3 of NLTK book
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.