Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // x = word frequency in the text snippets of one entity
- // y = word frequency in the text snippets of the other entity
- // xy = word frequency in the shared text snippets
- private Double mutualInformationAlgorithm(double x, double y, double xy) {
- return xy * Math.log((xy / (x * y)));
- }
- private Double confidenceScoreAlgorithm(double x, double y, double xy) {
- return Math.sqrt(xy*(x+y));
- }
Add Comment
Please, Sign In to add comment