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
Representations of phrases #17
Comments
My input is some sentences, and positions of all phrases are already recognized. How can I get the vector of 'DensePhrases'. Thanks for your help! |
Hi @JiachengLi1995, If you have a sentence and want to extract one of the phrase representations from it, you can simply make your sentence into json format that is used in this target ( Lines 135 to 150 in a64414f
Since you have the exact position that you want to extract, you can remove the You can make this process much simpler by slightly modifying the code. For instance, I would modify |
Is the 'SpanBERT/spanbert-base-cased' your pre-trained model for phrase embedding? |
You should use |
Thanks for your help! For me, the outputs from |
Correct! start and end representations are shared so you can just use start representations. |
Hi,
Thanks for the interesting project!
One question: If I want to get only phrase representations from your pre-trained model, how can I do that? I plan to use them as baselines. Thank you!
Best,
Jiacheng
The text was updated successfully, but these errors were encountered: