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 your pretrained model for question-answering ? # Question #261

Open
Alla-Abdella opened this issue Apr 11, 2020 · 2 comments
Open

Comments

@Alla-Abdella
Copy link

Hello,
I'm new to NLP, I run the colab jupyter notebook you provided. But, I couldn't find the instructions on how I can use your model for Q&A analysis.

For example:
I have text, I want to ask a question and get some answers by using your model. Can you provide an example on this case.

Thank you!

@luantran1311
Copy link

@Sankalp1233
Copy link

This does help a little bit: https://huggingface.co/transformers/model_doc/xlnet.html#xlnetforquestionanswering but at the end of the code we have: outputs = model(input_ids, start_positions=start_positions, end_positions=end_positions) loss = outputs.loss how do we get the answer to the question I am a little bit confused. They have the question but they do not show the answer specifically.

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

3 participants