This is an implementation of Banerjee and Pedersen's extended gloss overlap for Word Sense Disambiguation, using WordNet. A description of the algorithm can be found at http://www.d.umn.edu/~tpederse/Pubs/ijcai03.pdf
This code uses NLTK, which you can get from http://nltk.org/ . You also need to install the WordNet and stopwords corpuses (instructions on installing a corpus in NLTK can be found at http://nltk.org/data.html)