Skip to content

Commit

Permalink
020: Project restructuring
Browse files Browse the repository at this point in the history
  • Loading branch information
TharinduDR committed Jun 20, 2022
1 parent d2a1ef7 commit 9cd0235
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion simplests/algo/wmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,4 +165,4 @@ def nbow(document):

# Compute WMD.
distance = emd(d1, d2, distance_matrix)
return 1 / (math.exp(distance))
return -distance

0 comments on commit 9cd0235

Please sign in to comment.