Professional Documents
Culture Documents
Ejercicio 7 y 8
Ejercicio 7 y 8
1929 64 bit
(AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
from nltk.book import*
#ejercicio 7
text1: Moby Dick by Herman Melville
text2: Sense and Sensibility by Jane Austen
text3: The Book of Genesis
text4: Inaugural Address Corpus
text5: Chat Corpus
text5.collocations()
#ejercicio 8
len(set(text4))
Identifica un conjunto de palabras en el texto y calcula la congitud del conjunto
#ejercicio 8