mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-08-31 11:56:35 +00:00
Add document meta for Transformer Reader (#114)
This commit is contained in:
parent
bf8e506c45
commit
f4455ee42f
@ -87,7 +87,8 @@ class TransformersReader:
|
||||
"offset_answer_end": pred["end"],
|
||||
"probability": pred["score"],
|
||||
"score": None,
|
||||
"document_id": doc.id
|
||||
"document_id": doc.id,
|
||||
"meta": doc.meta
|
||||
})
|
||||
|
||||
# sort answers by their `probability` and select top-k
|
||||
|
Loading…
x
Reference in New Issue
Block a user