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

run preprocess.sh to generate word_glove.npy #5

Open
rahil1304 opened this issue Oct 14, 2019 · 3 comments
Open

run preprocess.sh to generate word_glove.npy #5

rahil1304 opened this issue Oct 14, 2019 · 3 comments

Comments

@rahil1304
Copy link

run preprocess.sh to generate word_glove.npy

Originally posted by @AlexYangLi in #3 (comment)

Running the preprocess.sh file does not generate word_glove.npy
Could you please upload that file?

@rahil1304
Copy link
Author

rahil1304 commented Oct 16, 2019

Hi, I had a small question. If I wanted to test this model for a single sentence, which script would I need to run? Because the repository has only a train.py file, so every time I run that it begins training from scratch. Is there a particular script that I could run to test the model on a single sentence?
I know your time is extremely valuable, so don't feel the need to respond in depth. However, if you do have 5 minutes, I would really appreciate it. @AlexYangLi

@prasys
Copy link

prasys commented Nov 13, 2019

Hi, I had a small question. If I wanted to test this model for a single sentence, which script would I need to run? Because the repository has only a train.py file, so every time I run that it begins training from scratch. Is there a particular script that I could run to test the model on a single sentence?
I know your time is extremely valuable, so don't feel the need to respond in depth. However, if you do have 5 minutes, I would really appreciate it. @AlexYangLi

Basically , you would need to write a script that loads the model , does the preprocessing (according to the model) to do the prediction. I am in the midsts of doing a single prediction method for it. It will be in my fork once I've done the work (I'm working on other things)

@prasys
Copy link

prasys commented Dec 11, 2019

@rahil1304 - You can check out my fork of this repo - there is a predict.py. It does prediction at sentence level (right now) - but you can do it at each individual word level

Basically you put in your single sentence as csv , it will generate the embeddings , then it loads the model and it would do a test against it. It's super dirty and quick hack. I'll make it bit more better

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