added word_features function and phrase_feature function.