Skip to content

zihao-wang/rots

Repository files navigation

ROTS, recursive optimal transport similarity

Code for paper Unsupervised Sentence Textual Similarity with Compositional Phrase Semantics

requirement

  • python OT
  • spacy
  • tqdm
  • pandas
  • numpy
  • sklearn
  • scipy
  • scikits.bootstrap

Setup

  1. prepare data yourself
  • prepare the vectors in vectors folder, see 'model/word_vector.py' for path specifications and see appendix for downloadable links.
  • prepare the datasets in dataset folder, see 'model/dataset.py' for path specifications and see appendix for ways to obtain and preprocess.
  1. run pipline.py file for evaluation, note that you may need to set the config files

For sample configs, please see the config folder.

Bibliography

@inproceedings{wang2022Unsupervised,
  title={Unsupervised Sentence Textual Similarity with Compositional Phrase Semantics},
  author={Zihao Wang and Jiaheng Dou and Yong Zhang},
  booktitle={Proceedings of the 29th International Conference on Computational Linguistics},
  year={2022}
}

About

Unsupervised Sentence Textual Similarity with Compositional Phrase Semantics (COLING 2022)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published