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

How to use the pretrained model for inference #10

Open
jama1017 opened this issue Nov 12, 2024 · 2 comments
Open

How to use the pretrained model for inference #10

jama1017 opened this issue Nov 12, 2024 · 2 comments

Comments

@jama1017
Copy link

Hi,

Thanks so much for the amazing work. I am quite new to the huggingface api and I wonder if you can kindly let me know how I can just use the pretrained CDLM model for event coreference resolution?

@aviclu
Copy link
Owner

aviclu commented Nov 12, 2024

@jama1017
Copy link
Author

Hi!

Thanks so much for your reply. I was looking for a bit more specific guidance on how to write the code.

Specfically, I can run the following as indicated on README:

from transformers import AutoTokenizer, AutoModel
# load model and tokenizer
tokenizer = AutoTokenizer.from_pretrained('biu-nlp/cdlm')
model = AutoModel.from_pretrained('biu-nlp/cdlm')

But I wonder how I can use this model on a new example document with events identified, not just to evaluate on the preloaded datasets?

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