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

Fix document id missing in farm inference output #174

Merged
merged 1 commit into from Jun 26, 2020

Conversation

Timoeller
Copy link
Contributor

@Timoeller Timoeller commented Jun 24, 2020

fixes #173 by zipping predictions coming from FARM with its input.
If the ordering of FARM input and output is not preserved this hacky fix will create bugs.

We should handle the doc id in FARM inferencer in the next release.

Sorry about sneaking in some other code changes.
The relevant code changes are in haystack/reader/farm.py line 254 and 271

@Timoeller Timoeller requested a review from tholor June 24, 2020 17:11
@Timoeller Timoeller merged commit c53aadd into master Jun 26, 2020
@julian-risch julian-risch deleted the bugfix_farmreader branch November 15, 2021 07:07
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

Successfully merging this pull request may close these issues.

document_id missing in FARMReader predict return statement
2 participants