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

Add Funsd Export #92

Merged
merged 10 commits into from
Mar 10, 2023
Merged

Add Funsd Export #92

merged 10 commits into from
Mar 10, 2023

Conversation

JSv4
Copy link
Owner

@JSv4 JSv4 commented Mar 10, 2023

Major change here is added logic to convert a target annotation to FUNSD format which can then be used to easily train LayoutLMv2, v3, etc. Also fixed an issue with annotation loading and download url generation for exports.

Coverage is going to take a small hit. Will add export tests in the future.

@codecov
Copy link

codecov bot commented Mar 10, 2023

Codecov Report

Merging #92 (26cdf7a) into main (91fd8c1) will decrease coverage by 4.42%.
The diff coverage is 19.14%.

@@            Coverage Diff             @@
##             main      #92      +/-   ##
==========================================
- Coverage   69.09%   64.68%   -4.42%     
==========================================
  Files          47       48       +1     
  Lines        1867     2047     +180     
==========================================
+ Hits         1290     1324      +34     
- Misses        577      723     +146     
Impacted Files Coverage Δ
opencontractserver/utils/etl.py 19.65% <0.00%> (ø)
opencontractserver/tasks/doc_tasks.py 47.77% <10.00%> (-18.30%) ⬇️
opencontractserver/tasks/export_tasks.py 26.26% <13.20%> (-14.17%) ⬇️
opencontractserver/utils/pdf.py 30.00% <14.81%> (-9.54%) ⬇️
opencontractserver/utils/text.py 33.33% <33.33%> (ø)
opencontractserver/types/dicts.py 100.00% <100.00%> (ø)
opencontractserver/types/enums.py 100.00% <100.00%> (ø)
opencontractserver/users/models.py 88.07% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@JSv4
Copy link
Owner Author

JSv4 commented Mar 10, 2023

Coverage hit is way too high. Need to write actual tests.

@JSv4
Copy link
Owner Author

JSv4 commented Mar 10, 2023

Actually, it's probably better to have this in here. Open a task to write test.

@JSv4 JSv4 merged commit bce304a into main Mar 10, 2023
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

1 participant