Comments (1)
Problem solved! The issue was that, in the current XML files, some textboxes are repeated again, but with an empty format. Perhaps those were deleted before at some point, but we still have them. Hence, I had to add a couple of conditions, first to remove duplicate entries due to these duplicated text boxes, and also to avoid the feat extraction failing due to empty textline vectors (as it was trying to get textlines from one of this empty duplicated textboxes). It seems to work now.
Still, I leave the Issue open as I encountered this error when saving the feature, and you will know better how to solve it
sqlalchemy.exc.StatementError: (builtins.ValueError) could not convert string to float: 'Bern, Donnerstag 9. Oktober'
[SQL: INSERT INTO features_asdf3f12c1221 (bbox, page_id, blocktext, pagetext, indentation_level, percent_rank_x, x_coord, dist_prev_line, dist_next_line, numbers_bucket0, brackets_bucket0, letters_bucket0, "BoldItalic", "Bold", "Italic", "Normal", linetext) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)]
[parameters: [{'brackets_bucket0': 1.0, 'BoldItalic': 0.0, 'numbers_bucket0': 1.0, 'Italic': 0.0, 'dist_next_line': 1000.0, 'bbox': '46.800,774.604,171.829,787.304 ... (96 characters truncated) ... ers_bucket0': 14.0, 'x_coord': 46.8, 'linetext': 'Bern, Donnerstag 9. Oktober', 'Normal': 20.0, 'page_id': 1, 'pagetext': None, 'blocktext': None}]]
ERROR:tornado.access:500 POST /tasks/save_features (::1) 69.33ms
from pdf2data.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pdf2data.