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
| #!/bin/bash | |
| # The following script installs Elastic stack on Ubuntu/Debian systems | |
| # install java | |
| sudo add-apt-repository -y ppa:webupd8team/java | |
| sudo apt-get update | |
| sudo apt-get -y install oracle-java8-installer |
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
| #!/usr/bin/python | |
| # | |
| # (originally entered at https://gist.github.com/1035399) | |
| # | |
| # License: GPLv3 | |
| # | |
| # To download the AFINN word list do: | |
| # wget http://www2.imm.dtu.dk/pubdb/views/edoc_download.php/6010/zip/imm6010.zip | |
| # unzip imm6010.zip | |
| # |
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
| # You need to install scikit-learn: | |
| # sudo pip install scikit-learn | |
| # | |
| # Dataset: Polarity dataset v2.0 | |
| # http://www.cs.cornell.edu/people/pabo/movie-review-data/ | |
| # | |
| # Full discussion: | |
| # https://marcobonzanini.wordpress.com/2015/01/19/sentiment-analysis-with-python-and-scikit-learn |