Skip to content

Instantly share code, notes, and snippets.

View jatanpatel92's full-sized avatar

Jatan Patel jatanpatel92

View GitHub Profile
@jatanpatel92
jatanpatel92 / elk_install.sh
Created April 3, 2017 20:19
Installing Elastic Stack on Debian System which uses systemd
#!/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
@jatanpatel92
jatanpatel92 / afinn.py
Created November 7, 2015 02:30 — forked from fnielsen/afinn.py
Simplest sentiment analysis in Python with AFINN
#!/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
#
@jatanpatel92
jatanpatel92 / sentiment_classification.py
Created November 7, 2015 01:38 — forked from bonzanini/sentiment_classification.py
Sentiment analysis with scikit-learn
# 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