removed functions for computing context and noise words