check_embed: Check if text embed is not from OCR

Description Usage Arguments Value See Also Examples

View source: R/gold_std.R

Description

Some PDFs have an embedded text layer that is derived from OCR by the scanner or other equipment that produced the PDF. Such documents will likely have OCR artifacts that will contaminate the 'gold standard' that is needed for error correction. The gold standard texts should only come from PDFs derived directly from the original document (e.g., .docx).

Usage

1

Arguments

file

Path to a PDF to check for embedding source

Value

Logical: TRUE if good embed, FALSE if from OCR

See Also

pdftools::pdf_info

Examples

1
# res <- summarize_gold("test.pdf", text)

jacob-ogre/ocrerrors documentation built on May 18, 2019, 8:01 a.m.