Download Tut from ekandhi/NLP-Tutorial: direct link, hf CLI and curl.
- Browser
- Download file 325 Bytes
-
https://huggingface.co/ekandhi/NLP-Tutorial/resolve/main/Tut
- Command line
-
hf download hf://ekandhi/NLP-Tutorial/Tut
-
curl -L -o Tut https://huggingface.co/ekandhi/NLP-Tutorial/resolve/main/Tut
325 Bytes
| from transformers import pipeline | |
| qa_model = pipeline("question-answering") | |
| question = "Where is the ball?" | |
| context = "The chair is near the table, and the ball is behind the chair." | |
| qa_model(question = question, context = context) | |
| ## {'answer': 'behind the chair', 'end': 61, 'score': 0.8110504746437073, | |
| # 'start': 45} |