old implementation of a Yarowsky-style word sense disambiguator