contentmine / cm-uclii Goto Github PK
View Code? Open in Web Editor NEWData and progress tracking for table extraction and semantically guided content enhancement
License: Apache License 2.0
Data and progress tracking for table extraction and semantically guided content enhancement
License: Apache License 2.0
Many tables in this corpus and similar papers make use of multiple rows of column headers. This provides nested or tree-structured headings.
Currently, only one row of column headers is preserved by norma. This affects the HTML and CSV outputs.
In this example the upper line of headings (MUSIC | CBTE | CBTT | Total) intended as column headings are not included in the final formats for the table:
CSV:
[extract from start of file]
"Demographic variable ","(n = 19) ","(n = 18) ","(n = 18) ","(N = 55) "
Age,40.37 (9.64),40.72 (11.02),41.39 (12.73),40.61 (10.99)
Gender (female),7 (37%),12 (67%),6 (32%),25 (45%)
Indigenous status (Aboriginal),0 (0%),2 (11%),0 (0%),2 (4%)
Cause:
The current table output format uses a simple HTML4/XHTML structure:
<table>
<caption />
<tr><th></th> ... </tr>
<tr><td></td> ... </tr>
...
</table>
Only one header row (i.e., row of form <tr><th></th> ... </tr>
) is included. This is added in module svg2xml
in TableContentCreator.java
in method addHeader
.
A solution to this issue which would simplify future development would be to make use of the higher-level table-structuring elements introduced in HTML4. Specifically an HTML4 table has syntax:
<!ELEMENT TABLE - -
(CAPTION?, (COL*|COLGROUP*), THEAD?, TFOOT?, TBODY+)>
So <thead>
could be used to group multiple header rows semantically without adding attributes to indicate header rows etc. for downstream processing and differentiation from rows of observation data.
Impact: Downstream processing would need a small refactor to take account of tables with a mixture of <tr>
and the other grouping elements <thead>
, <tbody>
and <tfoot>
. This would affect svg2xml
, html
and possibly other modules.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.