Skip to content
/ sWMD Public

Supervised Word Mover’s Distance(sWMD) in python

Notifications You must be signed in to change notification settings

ByronPan/sWMD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sWMD

sWMD in python

1.Introduction.

An efficient technique to learn a supervised metric, which we call the Supervised WMD (S-WMD) metric. To see the details, please refer http://papers.nips.cc/paper/6139-graph-clustering-block-models-and-model-free-results.pdf

2.Required.

  • Python 2
  • numpy
  • scipy 0.18.1
  • cython

3.Getting start.

Download the fold "dataset" from https://github.com/gaohuang/S-WMD.

Make sure that all the files and documents in a same directory. First compile the code by:

>>> python setup.py build_ext --inplace

Then run the code by:

>>> python swmd.py

For a detailed list of functionality see "functions.pyx"

About

Supervised Word Mover’s Distance(sWMD) in python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages