Guest User

Untitled

a guest
Jul 18th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.40 KB | None | 0 0
  1.     // x = word frequency in the text snippets of one entity
  2.     // y = word frequency in the text snippets of the other entity
  3.     // xy = word frequency in the shared text snippets
  4.     private Double mutualInformationAlgorithm(double x, double y, double xy) {
  5.         return xy * Math.log((xy / (x * y)));
  6.     }
  7.    
  8.     private Double confidenceScoreAlgorithm(double x, double y, double xy) {
  9.         return Math.sqrt(xy*(x+y));
  10.     }
Add Comment
Please, Sign In to add comment