-
Notifications
You must be signed in to change notification settings - Fork 8
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
Added dynamic section restructuring for non-PMC articles. #20
Open
Thomas-Rowlands
wants to merge
75
commits into
omicsNLP:main
Choose a base branch
from
Thomas-Rowlands:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…quality improvements, as well as a major refactoring of the Tables.py code design. Python code throughout AC has been mostly standardised with PEP compliance, however more work will be needed to cover the entire code base. Bugs Fixed: - Offset incorrect for the first "data_section" - HTML comments present in AC output. - Table title offset should now correct. - Offset value is now assigned to 'table_section_title'. - Empty 'table_section_title' fields are no longer output. - Removed duplicate pipe characters from table headers. - Table header strings should now display in the correct order, separated by pipes. - The first column has returned to the table outputs, even with no cell values. - Corrected ordering of data section rows. - Table footers are now duplicated for each split table output. - Tables should now split into multiple smaller tables under the correct circumstances; when encountering subheaders. - Super rows will no longer cause tables to be split.
…ong with their accompanying links).
…some scenarios (e.g. PMC4294952).
…ping on the first failed PMC file.
# Conflicts: # configs/config_pmc.json # run_app.py # src/AutoCorpus.py # src/table.py # src/utils.py
…putting texts regardless of table extraction results.
…putting texts regardless of table extraction results.
# Conflicts: # run_app.py # src/AutoCorpus.py # src/excel_extractor.py # src/pdf_extractor.py # src/supplementary_processor.py
# Conflicts: # src/bioc_documents.py
Re-using this PR since it is based on the same branch of my fork. This now includes a merge of all existing branches within my fork (see changes above). Main changes |
# Conflicts: # src/bioc_documents.py
Updated the github action to ensure poetry is installed initially
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Sections from journals such as Human Molecular Genetics were not cleanly contained separately, instead just having their contents listed all as siblings throughout the main text.
This update restructures matches that display this type of layout, then restructures them into empty parent divs more akin to PMC articles. The rest of the AC code base can then treat matches in the same manner as before effectively.
White space removal has been commented out for now until a few kinks are worked out.