Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PSL? #1

Closed
StevenLOL opened this issue Feb 17, 2017 · 2 comments
Closed

PSL? #1

StevenLOL opened this issue Feb 17, 2017 · 2 comments

Comments

@StevenLOL
Copy link

Hi, thanks for sharing the code.

Would you please point out which part of the code is refer to the "PSL" in your paper ? I only manage to found two weighting functions:

def getWeight(words, word2weight):
...
def getIDFWeight(wordfile, save_file=''):
@YingyuLiang
Copy link
Collaborator

PSL refers to the word vector file paragram_sl999_small.txt. You can

  1. download it from John Wieting's github (https://github.com/jwieting/iclr2016)
  2. replace the file glove.840B.300d.txt in the scripts in the examples folder (sif_embedding.py, sim_sif.py, sim_tfidf.py, supervised_sif_proj.sh) with paragram_sl999_small.txt
  3. run demo.sh

@StevenLOL
Copy link
Author

Cool!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants