Update README.md
Browse files
README.md
CHANGED
@@ -30,6 +30,8 @@ QA_input = {
|
|
30 |
}
|
31 |
res = nlp(QA_input)
|
32 |
|
|
|
|
|
33 |
# b) Inside the Question answering pipeline
|
34 |
|
35 |
inputs = tokenizer(query, text, return_tensors="pt",padding=True, truncation=True, max_length=512, stride=256)
|
|
|
30 |
}
|
31 |
res = nlp(QA_input)
|
32 |
|
33 |
+
{'score': 1.0, 'start': 21, 'end': 23, 'answer': '臺中'}
|
34 |
+
|
35 |
# b) Inside the Question answering pipeline
|
36 |
|
37 |
inputs = tokenizer(query, text, return_tensors="pt",padding=True, truncation=True, max_length=512, stride=256)
|