Skip to content

Instantly share code, notes, and snippets.

View chretm's full-sized avatar

schliteur chretm

View GitHub Profile
@chretm
chretm / gist:fdcefce520ddfa1b66af3c730d4928c0
Created April 13, 2017 09:16
semantic-similarity-for-short-sentence_python3
#author : Sujit Pal
#Note: this is a python3 updated version of http://sujitpal.blogspot.fr/2014/12/semantic-similarity-for-short-sentences.html
# by mathieu Chrétien ([email protected])
#contributor : Mathieu Chrétien
from __future__ import division
import nltk
from nltk.corpus import wordnet as wn