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

Use Document.context for document classification #46

Merged
merged 1 commit into from
Sep 28, 2022

Conversation

rstebbing
Copy link
Contributor

This PR updates document classification to use d.context instead of d.previous[0] in src/docquery/cmd/scan.py. The motivation for this is to have document classification respect the same OCR selection that is used for QA.

Copy link
Contributor

@ankrgyl ankrgyl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great find!

@rstebbing rstebbing merged commit 13c127b into main Sep 28, 2022
@rstebbing rstebbing deleted the rstebbing/scan-context branch September 28, 2022 17:08
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.

None yet

2 participants