Skip to content

Instantly share code, notes, and snippets.

@vigneshprajapati
vigneshprajapati / 0_reuse_code.js
Created January 15, 2016 05:09
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
'''
redis_search.py
Written by Josiah Carlson July 3, 2010
Released into the public domain.
This module implements a simple TF/IDF indexing and search algorithm using
Redis as a datastore server. The particular algorithm implemented uses the
@vigneshprajapati
vigneshprajapati / text-cleaning+word2vec-gensim.py
Created December 19, 2017 20:14 — forked from a-paxton/text-cleaning+word2vec-gensim.py
Cleaning Text Data and Creating 'word2vec' Model with Gensim
# preliminaries
from pymongo import MongoClient
from nltk.corpus import stopwords
from string import ascii_lowercase
import pandas as pd
import gensim, os, re, pymongo, itertools, nltk, snowballstemmer
# set the location where we'll save our model
savefolder = '/data'