mmalewski / pdf2xml Goto Github PK
View Code? Open in Web Editor NEWThis project forked from helsinki-nlp/pdf2xml
License: GNU General Public License v3.0
This project forked from helsinki-nlp/pdf2xml
License: GNU General Public License v3.0
pdf2xml - convert PDF files to XML ---------------------------------- This script heavily relies on Apache Tika and pdftotext for the extraction of text and the conversion to XML. It tries to combine information from both tools and different conversion modes: - pdftotext in standard mode puts some hyphenated words together - pdftotext in 'raw' mode is better in keeping characters together - Apache Tika can add XML markup to mark paragraphs and lists pdf2xml uses several heuristics to use information from both tools. It collects the vocabulary from different conversions and tries to merge tokens if they would form a valid word (which is part of the vocabulary). The longest possibe string is prefered. Hyphens at the end of a line may mark a hyphenated word. pdf2xml tries to put the token before the hyphen together with the first token of the next line and accepts the new string if it is part of the vocabulary. Look at the example PDF-file in the test directory (t/). If you look at the difference between raw conversion (without cleanup heuristics), you will find a lot of changes. For example: raw: <p>PRESENTATION ET R A P P E L DES PRINCIPAUX RESULTATS 9</p> clean: <p>PRESENTATION ET RAPPEL DES PRINCIPAUX RESULTATS 9</p> raw: <p>2. Les c r i t è r e s de choix : la c o n s o m m a t i o n de c o m b u s - t ib les et l e u r moda l i t é d ' u t i l i s a t i on d 'une p a r t , la concen t r a t ion d ' a u t r e p a r t 16</p> clean: <p>2. Les critères de choix : la consommation de combustibles et leur modalité d'utilisation d'une part, la concentration d'autre part 16</p> Note: The heuristics may not always produce correct results!
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.