Closed heslowen closed 4 years ago
You can use L2 distance or angular distance or something of your own choice as well. See https://github.com/context-mover/context-mover-distance-and-barycenters/blob/master/wasserstein.py#L402 for the corresponding code.
In paper
How to choose ? Another way,when I get two word embeddings(e.g. both 200 dimension vector), how can I get the matrix M?
Thx!!!~~~