Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8586287
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T22:16:31+00:00 2026-06-11T22:16:31+00:00

I am working on retrieving the readable content (i.e. text) from PDF documents, most

  • 0
  • I am working on retrieving the readable content (i.e. text) from PDF documents, most of which are scientific journal articles.
  • I am using the Poppler text utilities to convert the PDF to text format.
  • The text is extracted nicely, but unfortunately so are other components of the articles (e.g. numerical tables), which cannot be rendered properly in plain text.
  • For example, I might get the following output in the middle of the article:

    Character distributions random Hmax

    1 2 3 4

    Organization c) (of characters over species

    A

    B

    A 0 0 0 + C

    B + + + +

    C + + + + A

    B 4+

    H Character distributions nonrandom Hobs

    Entropy

    3+ 2+ 1+

    (diversity of characters over species

My question is: how would I identify such “noise” and differentiate it from normal blocks of text? Are there any existing algorithms? I am working in Ruby, but code in any language will help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T22:16:32+00:00Added an answer on June 11, 2026 at 10:16 pm

    You could use a Naive Bayes Classifier to model valid vs. non-valid lines.

    Here’s an article on one in Ruby; there’s a good implementation in Python’s nltk.

    To set it up you would need to give it examples, for example by filling one file with good lines and one with bad ones. This is the same model used by spam filters.

    One trick for this use case is that many basic Naive Bayes Classifiers word using a word-occurrence model for features, whereas here it’s not the vocabulary that’s significant. You may with to use line length, percent spaces (rounded to 5% or 10% intervals), or percent of various punctuation marks (rounded but with higher precision). Hopefully your classifier will learn that “lines with no periods and 30% spaces are bad” or “lines with no punctuation where every word begins with a capital letter are bad”.

    Based on just your examples above, though, you could probably reject any line with too high a ratio of spaces or those completely lacking in sentence punctuation such as commas and periods.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a GWT app where I'm retrieving a file from a web
I've got a functional fullCalendar http://arshaw.com/fullcalendar/ working retrieving a single source from Google Calendar
I am working with some test code to create Visio documents. I am using
I have auto registration working with authlogic using gaizka's version of authlogic_openid which I
I'm working on an application that opens a database connection and retrieving data from
I am currently working on a system for storing and retrieving data from a
I am retrieving a file from our FTP server which is then put into
I'm retrieving a datetime from a SQLite DB which comes out in the format...
I'm working on retrieving a POSIX path to a folder or file from an
Am working in a project where retrieving data from database takes time since the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.