While the factor p(e | e) can be directly computed by the word similarity model, the factor p(f | f ) can be problematic because it vanishes for f out of vocabulary.
to guard against false positives, we can alternatively reformulate it as a product of experts (Hinton, 1999), where Z(w) is a normalization constant.