code: def kullback_leibler_divergence(self, dist1, dist2):
      assert dist1.shape == dist2.shape
      dist2[dist2 < EPS] = EPS
      result = np.sum(dist1 * np.log(dist1 / dist2))
      return result
  
file_path: PaddleHub/modules/text/language_model/lda_news/semantic_matching.py
imports: import numpy
  from lda_news.vocab import OOV
label_desc: Use image node_id 5 for calling the SemanticMatching obj's underlying member method code with example usage: obj.kullback_leibler_divergence(dist1, dist2) and returns: result