Created
June 28, 2020 22:01
-
-
Save pablodz/563bb02999d9ff8638e00b778e0bd8bb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "cells": [ | |
| { | |
| "cell_type": "code", | |
| "execution_count": 0, | |
| "metadata": { | |
| "collapsed": false | |
| }, | |
| "outputs": [ | |
| ], | |
| "source": [ | |
| "import nltk\n", | |
| "nltk.download('vader_lexicon') # Obligatorio para usar SentimentIntensityAnalyzer\n", | |
| "from nltk.sentiment.vader import SentimentIntensityAnalyzer\n", | |
| "sid = SentimentIntensityAnalyzer()\n", | |
| "\n", | |
| "import hunspell # Nos ayudará con los diccionarios en español\n", | |
| "# Buscar diccionarios en carpeta de instalacion\n", | |
| "# Más diccionarios de idiomas disponibles en: https://github.com/wooorm/dictionaries/tree/master/dictionaries\n", | |
| "diccionario = hunspell.HunSpell('/content/es_MX.dic','/content/es_MX.aff')\n", | |
| "\n", | |
| "\n", | |
| "from nltk.sentiment.vader import SentimentIntensityAnalyzer\n", | |
| "sid = SentimentIntensityAnalyzer()" | |
| ] | |
| } | |
| ], | |
| "metadata": { | |
| "kernelspec": { | |
| "display_name": "Python 3 (system-wide)", | |
| "language": "python", | |
| "metadata": { | |
| "cocalc": { | |
| "description": "Python 3 programming language", | |
| "priority": 100, | |
| "url": "https://www.python.org/" | |
| } | |
| }, | |
| "name": "python3" | |
| }, | |
| "language_info": { | |
| "codemirror_mode": { | |
| "name": "ipython", | |
| "version": 3 | |
| }, | |
| "file_extension": ".py", | |
| "mimetype": "text/x-python", | |
| "name": "python", | |
| "nbconvert_exporter": "python", | |
| "pygments_lexer": "ipython3", | |
| "version": "3.6.9" | |
| } | |
| }, | |
| "nbformat": 4, | |
| "nbformat_minor": 4 | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment