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

Updating the conditional of whether to assign a page number. #35

Merged
merged 2 commits into from
Jun 3, 2024

Conversation

THOR300
Copy link
Collaborator

@THOR300 THOR300 commented Jun 3, 2024

Description

This is a bug fix for the passage level hugging face dataset. Noticed that the text blocks corresponding to the first page didn't have pdf metadata assigned.

Upon inspection of the code realised that the conditional that was used was skipping 0.

This can be proven by:

>>> page_number = 0 
>>> if page_number:
...     print("hello world")
... 
>>> 

Proposed version

Please select the option below that is most relevant from the list below. This
will be used to generate the next tag version name during auto-tagging.

  • Skip auto-tagging
  • Patch
  • Minor version
  • Major version

Visit the Semver website to understand the
difference between MAJOR, MINOR, and PATCH versions.

Notes:

  • If none of these options are selected, auto-tagging will fail (integrated soon)
  • Where multiple options are selected, the most senior option ticked will be
    used -- e.g. Major > Minor > Patch
  • If you are selecting the version in the list above using the textbox, make
    sure your selected option is marked [x] with no spaces in between the
    brackets and the x

Type of change

Please select the option(s) below that are most relevant:

  • Bug fix
  • New feature
  • Breaking change

How Has This Been Tested?

Used TDD to add a failing test and then a fix.

Before submitting

  • I've read and followed all steps in the Making a pull request
    section of the CONTRIBUTING docs.
  • I've updated or added any relevant docstrings following the syntax described in the
    Writing docstrings section of the CONTRIBUTING docs.
  • If this PR fixes a bug, I've added a test that will fail without my fix.
  • If this PR adds a new feature, I've added tests that sufficiently cover my new functionality.

Copy link

linear bot commented Jun 3, 2024

@THOR300 THOR300 marked this pull request as ready for review June 3, 2024 15:44
@THOR300 THOR300 requested a review from kdutia June 3, 2024 15:44
@THOR300 THOR300 merged commit 00d8182 into main Jun 3, 2024
6 checks passed
@THOR300 THOR300 deleted the feature/pods-1317-bugfix-for-hugging-face-sync branch June 3, 2024 15:56
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.

2 participants