Skip to content

Commit

Permalink
nonbreaking refactor to prepare for more detect/format options
Browse files Browse the repository at this point in the history
  • Loading branch information
conjuncts committed Sep 15, 2024
1 parent b8b3971 commit 269d89e
Show file tree
Hide file tree
Showing 26 changed files with 1,383 additions and 1,261 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ See the [docs](https://gmft.readthedocs.io/en/latest/usage.html) and the [config
from gmft import CroppedTable, TableDetector, AutoTableFormatter
from gmft.pdf_bindings import PyPDFium2Document

detector = TableDetector()
detector = AutoTableDetector()
formatter = AutoTableFormatter()

def ingest_pdf(pdf_path): # produces list[CroppedTable]
Expand Down
7 changes: 4 additions & 3 deletions docs/source/config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ Large table assumption can be directly turned on/off with ``config.large_table_a

Fig 4. Large Table Assumption on

.. blockquote::

*Fig. 3 and 4 Credits: © C. Dougherty 2001, 2002 (c.dougherty@lse.ac.uk). These tables have been computed to accompany the text C. Dougherty Introduction to Econometrics (second edition 2002, Oxford University Press, Oxford). They may be reproduced freely provided that this attribution is retained.*

.. raw:: html

<small>Fig. 3 and 4 Credits: © C. Dougherty 2001, 2002 (c.dougherty@lse.ac.uk). These tables have been computed to accompany the text C. Dougherty Introduction to Econometrics (second edition 2002, Oxford University Press, Oxford). They may be reproduced freely provided that this attribution is retained.</small>
4 changes: 2 additions & 2 deletions docs/source/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ For example,

.. code-block:: python
from gmft import CroppedTable, TableDetector, AutoTableFormatter
from gmft import CroppedTable, AutoTableDetector, AutoTableFormatter
from gmft.pdf_bindings import PyPDFium2Document
detector = TableDetector()
detector = AutoTableDetector()
formatter = AutoTableFormatter()
def ingest_pdf(pdf_path): # produces list[CroppedTable]
Expand Down
2 changes: 1 addition & 1 deletion gmft/_embed_tables.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from gmft import AutoTableFormatter, AutoTableDetector
from gmft.pdf_bindings.bindings_pdfium import PyPDFium2Document, PyPDFium2Page
from gmft.pdf_bindings.pdfium import PyPDFium2Document, PyPDFium2Page
from gmft.table_function import FormattedTable


Expand Down
Loading

0 comments on commit 269d89e

Please sign in to comment.