diff --git a/Advanced/Data analysis/SentimentAnalysis.ipynb b/Advanced/Data analysis/SentimentAnalysis.ipynb index ce56133..d6141bf 100644 --- a/Advanced/Data analysis/SentimentAnalysis.ipynb +++ b/Advanced/Data analysis/SentimentAnalysis.ipynb @@ -5,360 +5,6 @@ "execution_count": 1, "metadata": {}, "outputs": [ - { - "name": "stderr", - "output_type": "stream", - "text": [ - "[nltk_data] Downloading collection 'all'\n", - "[nltk_data] | \n", - "[nltk_data] | Downloading package abc to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package abc is already up-to-date!\n", - "[nltk_data] | Downloading package alpino to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package alpino is already up-to-date!\n", - "[nltk_data] | Downloading package averaged_perceptron_tagger to\n", - "[nltk_data] | C:\\Users\\Mike Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package averaged_perceptron_tagger is already up-\n", - "[nltk_data] | to-date!\n", - "[nltk_data] | Downloading package averaged_perceptron_tagger_ru to\n", - "[nltk_data] | C:\\Users\\Mike Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package averaged_perceptron_tagger_ru is already\n", - "[nltk_data] | up-to-date!\n", - "[nltk_data] | Downloading package basque_grammars to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package basque_grammars is already up-to-date!\n", - "[nltk_data] | Downloading package bcp47 to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package bcp47 is already up-to-date!\n", - "[nltk_data] | Downloading package biocreative_ppi to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package biocreative_ppi is already up-to-date!\n", - "[nltk_data] | Downloading package bllip_wsj_no_aux to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package bllip_wsj_no_aux is already up-to-date!\n", - "[nltk_data] | Downloading package book_grammars to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package book_grammars is already up-to-date!\n", - "[nltk_data] | Downloading package brown to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package brown is already up-to-date!\n", - "[nltk_data] | Downloading package brown_tei to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package brown_tei is already up-to-date!\n", - "[nltk_data] | Downloading package cess_cat to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package cess_cat is already up-to-date!\n", - "[nltk_data] | Downloading package cess_esp to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package cess_esp is already up-to-date!\n", - "[nltk_data] | Downloading package chat80 to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package chat80 is already up-to-date!\n", - "[nltk_data] | Downloading package city_database to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package city_database is already up-to-date!\n", - "[nltk_data] | Downloading package cmudict to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package cmudict is already up-to-date!\n", - "[nltk_data] | Downloading package comparative_sentences to\n", - "[nltk_data] | C:\\Users\\Mike Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package comparative_sentences is already up-to-\n", - "[nltk_data] | date!\n", - "[nltk_data] | Downloading package comtrans to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package comtrans is already up-to-date!\n", - "[nltk_data] | Downloading package conll2000 to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package conll2000 is already up-to-date!\n", - "[nltk_data] | Downloading package conll2002 to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package conll2002 is already up-to-date!\n", - "[nltk_data] | Downloading package conll2007 to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package conll2007 is already up-to-date!\n", - "[nltk_data] | Downloading package crubadan to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package crubadan is already up-to-date!\n", - "[nltk_data] | Downloading package dependency_treebank to\n", - "[nltk_data] | C:\\Users\\Mike Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package dependency_treebank is already up-to-date!\n", - "[nltk_data] | Downloading package dolch to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package dolch is already up-to-date!\n", - "[nltk_data] | Downloading package europarl_raw to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package europarl_raw is already up-to-date!\n", - "[nltk_data] | Downloading package extended_omw to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package extended_omw is already up-to-date!\n", - "[nltk_data] | Downloading package floresta to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package floresta is already up-to-date!\n", - "[nltk_data] | Downloading package framenet_v15 to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package framenet_v15 is already up-to-date!\n", - "[nltk_data] | Downloading package framenet_v17 to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package framenet_v17 is already up-to-date!\n", - "[nltk_data] | Downloading package gazetteers to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package gazetteers is already up-to-date!\n", - "[nltk_data] | Downloading package genesis to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package genesis is already up-to-date!\n", - "[nltk_data] | Downloading package gutenberg to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package gutenberg is already up-to-date!\n", - "[nltk_data] | Downloading package ieer to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package ieer is already up-to-date!\n", - "[nltk_data] | Downloading package inaugural to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package inaugural is already up-to-date!\n", - "[nltk_data] | Downloading package indian to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package indian is already up-to-date!\n", - "[nltk_data] | Downloading package jeita to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package jeita is already up-to-date!\n", - "[nltk_data] | Downloading package kimmo to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package kimmo is already up-to-date!\n", - "[nltk_data] | Downloading package knbc to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package knbc is already up-to-date!\n", - "[nltk_data] | Downloading package large_grammars to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package large_grammars is already up-to-date!\n", - "[nltk_data] | Downloading package lin_thesaurus to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package lin_thesaurus is already up-to-date!\n", - "[nltk_data] | Downloading package mac_morpho to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package mac_morpho is already up-to-date!\n", - "[nltk_data] | Downloading package machado to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package machado is already up-to-date!\n", - "[nltk_data] | Downloading package masc_tagged to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package masc_tagged is already up-to-date!\n", - "[nltk_data] | Downloading package maxent_ne_chunker to\n", - "[nltk_data] | C:\\Users\\Mike Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package maxent_ne_chunker is already up-to-date!\n", - "[nltk_data] | Downloading package maxent_treebank_pos_tagger to\n", - "[nltk_data] | C:\\Users\\Mike Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package maxent_treebank_pos_tagger is already up-\n", - "[nltk_data] | to-date!\n", - "[nltk_data] | Downloading package moses_sample to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package moses_sample is already up-to-date!\n", - "[nltk_data] | Downloading package movie_reviews to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package movie_reviews is already up-to-date!\n", - "[nltk_data] | Downloading package mte_teip5 to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package mte_teip5 is already up-to-date!\n", - "[nltk_data] | Downloading package mwa_ppdb to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package mwa_ppdb is already up-to-date!\n", - "[nltk_data] | Downloading package names to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package names is already up-to-date!\n", - "[nltk_data] | Downloading package nombank.1.0 to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package nombank.1.0 is already up-to-date!\n", - "[nltk_data] | Downloading package nonbreaking_prefixes to\n", - "[nltk_data] | C:\\Users\\Mike Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package nonbreaking_prefixes is already up-to-date!\n", - "[nltk_data] | Downloading package nps_chat to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package nps_chat is already up-to-date!\n", - "[nltk_data] | Downloading package omw to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package omw is already up-to-date!\n", - "[nltk_data] | Downloading package omw-1.4 to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package omw-1.4 is already up-to-date!\n", - "[nltk_data] | Downloading package opinion_lexicon to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package opinion_lexicon is already up-to-date!\n", - "[nltk_data] | Downloading package panlex_swadesh to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package panlex_swadesh is already up-to-date!\n", - "[nltk_data] | Downloading package paradigms to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package paradigms is already up-to-date!\n", - "[nltk_data] | Downloading package pe08 to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package pe08 is already up-to-date!\n", - "[nltk_data] | Downloading package perluniprops to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package perluniprops is already up-to-date!\n", - "[nltk_data] | Downloading package pil to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package pil is already up-to-date!\n", - "[nltk_data] | Downloading package pl196x to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package pl196x is already up-to-date!\n", - "[nltk_data] | Downloading package porter_test to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package porter_test is already up-to-date!\n", - "[nltk_data] | Downloading package ppattach to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package ppattach is already up-to-date!\n", - "[nltk_data] | Downloading package problem_reports to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package problem_reports is already up-to-date!\n", - "[nltk_data] | Downloading package product_reviews_1 to\n", - "[nltk_data] | C:\\Users\\Mike Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package product_reviews_1 is already up-to-date!\n", - "[nltk_data] | Downloading package product_reviews_2 to\n", - "[nltk_data] | C:\\Users\\Mike Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package product_reviews_2 is already up-to-date!\n", - "[nltk_data] | Downloading package propbank to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package propbank is already up-to-date!\n", - "[nltk_data] | Downloading package pros_cons to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package pros_cons is already up-to-date!\n", - "[nltk_data] | Downloading package ptb to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package ptb is already up-to-date!\n", - "[nltk_data] | Downloading package punkt to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package punkt is already up-to-date!\n", - "[nltk_data] | Downloading package qc to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package qc is already up-to-date!\n", - "[nltk_data] | Downloading package reuters to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package reuters is already up-to-date!\n", - "[nltk_data] | Downloading package rslp to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package rslp is already up-to-date!\n", - "[nltk_data] | Downloading package rte to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package rte is already up-to-date!\n", - "[nltk_data] | Downloading package sample_grammars to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package sample_grammars is already up-to-date!\n", - "[nltk_data] | Downloading package semcor to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package semcor is already up-to-date!\n", - "[nltk_data] | Downloading package senseval to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package senseval is already up-to-date!\n", - "[nltk_data] | Downloading package sentence_polarity to\n", - "[nltk_data] | C:\\Users\\Mike Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package sentence_polarity is already up-to-date!\n", - "[nltk_data] | Downloading package sentiwordnet to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package sentiwordnet is already up-to-date!\n", - "[nltk_data] | Downloading package shakespeare to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package shakespeare is already up-to-date!\n", - "[nltk_data] | Downloading package sinica_treebank to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package sinica_treebank is already up-to-date!\n", - "[nltk_data] | Downloading package smultron to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package smultron is already up-to-date!\n", - "[nltk_data] | Downloading package snowball_data to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package snowball_data is already up-to-date!\n", - "[nltk_data] | Downloading package spanish_grammars to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package spanish_grammars is already up-to-date!\n", - "[nltk_data] | Downloading package state_union to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package state_union is already up-to-date!\n", - "[nltk_data] | Downloading package stopwords to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package stopwords is already up-to-date!\n", - "[nltk_data] | Downloading package subjectivity to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package subjectivity is already up-to-date!\n", - "[nltk_data] | Downloading package swadesh to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package swadesh is already up-to-date!\n", - "[nltk_data] | Downloading package switchboard to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package switchboard is already up-to-date!\n", - "[nltk_data] | Downloading package tagsets to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package tagsets is already up-to-date!\n", - "[nltk_data] | Downloading package timit to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package timit is already up-to-date!\n", - "[nltk_data] | Downloading package toolbox to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package toolbox is already up-to-date!\n", - "[nltk_data] | Downloading package treebank to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package treebank is already up-to-date!\n", - "[nltk_data] | Downloading package twitter_samples to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package twitter_samples is already up-to-date!\n", - "[nltk_data] | Downloading package udhr to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package udhr is already up-to-date!\n", - "[nltk_data] | Downloading package udhr2 to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package udhr2 is already up-to-date!\n", - "[nltk_data] | Downloading package unicode_samples to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package unicode_samples is already up-to-date!\n", - "[nltk_data] | Downloading package universal_tagset to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package universal_tagset is already up-to-date!\n", - "[nltk_data] | Downloading package universal_treebanks_v20 to\n", - "[nltk_data] | C:\\Users\\Mike Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package universal_treebanks_v20 is already up-to-\n", - "[nltk_data] | date!\n", - "[nltk_data] | Downloading package vader_lexicon to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package vader_lexicon is already up-to-date!\n", - "[nltk_data] | Downloading package verbnet to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package verbnet is already up-to-date!\n", - "[nltk_data] | Downloading package verbnet3 to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package verbnet3 is already up-to-date!\n", - "[nltk_data] | Downloading package webtext to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package webtext is already up-to-date!\n", - "[nltk_data] | Downloading package wmt15_eval to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package wmt15_eval is already up-to-date!\n", - "[nltk_data] | Downloading package word2vec_sample to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package word2vec_sample is already up-to-date!\n", - "[nltk_data] | Downloading package wordnet to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package wordnet is already up-to-date!\n", - "[nltk_data] | Downloading package wordnet2021 to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package wordnet2021 is already up-to-date!\n", - "[nltk_data] | Downloading package wordnet2022 to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package wordnet2022 is already up-to-date!\n", - "[nltk_data] | Downloading package wordnet31 to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package wordnet31 is already up-to-date!\n", - "[nltk_data] | Downloading package wordnet_ic to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package wordnet_ic is already up-to-date!\n", - "[nltk_data] | Downloading package words to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package words is already up-to-date!\n", - "[nltk_data] | Downloading package ycoe to C:\\Users\\Mike\n", - "[nltk_data] | Odnis\\AppData\\Roaming\\nltk_data...\n", - "[nltk_data] | Package ycoe is already up-to-date!\n", - "[nltk_data] | \n", - "[nltk_data] Done downloading collection all\n" - ] - }, { "data": { "text/html": [ @@ -470,31 +116,15 @@ "source": [ "# import libraries\n", "import pandas as pd\n", - "\n", "import nltk\n", - "\n", "from nltk.sentiment.vader import SentimentIntensityAnalyzer\n", - "\n", "from nltk.corpus import stopwords\n", - "\n", "from nltk.tokenize import word_tokenize\n", - "\n", "from nltk.stem import WordNetLemmatizer\n", "\n", - "\n", - "# download nltk corpus (first time only)\n", - "import nltk\n", - "\n", - "nltk.download('all')\n", - "\n", - "\n", - "\n", - "\n", "# Load the amazon review dataset\n", - "\n", "df = pd.read_csv('https://raw.githubusercontent.com/pycaret/pycaret/master/datasets/amazon.csv')\n", - "\n", - "df" + "df\n" ] }, { @@ -853,7 +483,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.3" + "version": "3.11.6" } }, "nbformat": 4,