Skip to content

Instantly share code, notes, and snippets.

Sujit Pal sujitpal

Block or report user

Report or block sujitpal

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View bow-vs-sif-embedding-for-text-classification.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sujitpal
sujitpal / babi_memnn.py
Last active Oct 3, 2016
My modified version of keras/examples/babi_memnn.py using the new functional API instead of Sequential API (changes between comment lines "construct network" and "compile network"). Originally driven by keras issue 3927.
View babi_memnn.py
'''Trains a memory network on the bAbI dataset.
References:
- Jason Weston, Antoine Bordes, Sumit Chopra, Tomas Mikolov, Alexander M. Rush,
"Towards AI-Complete Question Answering: A Set of Prerequisite Toy Tasks",
http://arxiv.org/abs/1502.05698
- Sainbayar Sukhbaatar, Arthur Szlam, Jason Weston, Rob Fergus,
"End-To-End Memory Networks",
http://arxiv.org/abs/1503.08895
@sujitpal
sujitpal / alice_lstm_seq2seq.ipynb
Created May 12, 2016
LSTM for Sequence to Sequence Generation - Deep Learning Learners Meetup Presentation May-12-2016
View alice_lstm_seq2seq.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sujitpal
sujitpal / alice_chargen_rnn.ipynb
Created May 12, 2016
RNN for Character Generation - Deep Learning Learners Meetup Presentation May-12-2016
View alice_chargen_rnn.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sujitpal
sujitpal / junit_opennlp_extract_np_from_text.java
Created Apr 24, 2016
JUnit/OpenNLP code to extract Noun Phrases from text. Originally from my pastebin (http://pastebin.com/bUDY7fb0).
View junit_opennlp_extract_np_from_text.java
@Test
public void testNounPhraseExtractionStandalone() throws Exception {
SentenceDetectorME sentenceDetector;
TokenizerME tokenizer;
POSTaggerME posTagger;
ChunkerME chunker;
InputStream smis = null;
InputStream tmis = null;
InputStream pmis = null;
InputStream cmis = null;
@sujitpal
sujitpal / wmd_short_sentences_scala.html
Created Apr 24, 2016
Databricks HTML export of Scala Notebook for computing Word Mover's Distance for Similarity between Short Sentences.
View wmd_short_sentences_scala.html
<!DOCTYPE html>
<html>
<head>
<meta name="databricks-html-version" content="1">
<title>wmd_short_sentences - Databricks</title>
<meta charset="utf-8">
<meta name="google" content="notranslate">
<meta http-equiv="Content-Language" content="en">
<meta http-equiv="Content-Type" content="text/html; charset=UTF8">
@sujitpal
sujitpal / redis-server
Created Jun 13, 2014
Init script for redis-server
View redis-server
#! /bin/sh
### BEGIN INIT INFO
# Provides: redis-server
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop redis-server
### END INIT INFO
@sujitpal
sujitpal / cms_benefits_data_analysis.ipynb
Created Apr 28, 2014
Basic Data Analysis of Medicaid Benefits data from CMS.gov
View cms_benefits_data_analysis.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sujitpal
sujitpal / cms_data_download.ipynb
Created Apr 28, 2014
Some simple Python code to parse the CMS.gov site and extract links to all the dataset zips.
View cms_data_download.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sujitpal
sujitpal / lung_cancer_market_basket.ipynb
Last active Jun 27, 2018
Using Market Basket (Apriori) analysis to predict frequent gene expression itemsets to predict Lung Cancer type
View lung_cancer_market_basket.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
You can’t perform that action at this time.