-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Getting Started and update README
- Loading branch information
Showing
3 changed files
with
80 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
Getting Started | ||
=============== | ||
|
||
This document will show you how to get up and running with Fonduer. We'll show | ||
you how to get everything installed and your machine so that you can walk | ||
through real examples by checking out our Tutorials_. | ||
|
||
Installing External Dependencies | ||
-------------------------------- | ||
|
||
Fonduer relies on a couple of external applications. You'll need to install | ||
these and be sure are on your ``PATH``. | ||
|
||
For OS X using homebrew_:: | ||
|
||
$ brew install poppler | ||
$ brew install postgresql | ||
|
||
On Debian-based distros:: | ||
|
||
$ sudo apt update | ||
$ sudo apt install poppler-utils | ||
$ sudo apt install postgresql | ||
|
||
.. note:: | ||
Fonduer requires PostgreSQL version 9.6 or above. | ||
|
||
.. note:: | ||
Fonduer requires ``poppler-utils`` to be version 0.36.0 or above. | ||
Otherwise, the ``-bbox-layout`` option is not available for ``pdftotext`` | ||
(`see changelog`_). | ||
|
||
|
||
Installing the Fonduer Package | ||
------------------------------ | ||
|
||
Then, install Fonduer by running:: | ||
|
||
$ pip install fonduer | ||
|
||
.. note:: | ||
Fonduer only supports Python 3. Python 2 is not supported. | ||
|
||
.. tip:: | ||
For the Python dependencies, we recommend using a virtualenv_, which will | ||
allow you to install Fonduer and it's python dependencies in a isolated | ||
Python environment. Once you have virtualenv installed, you can create a | ||
Python 3 virtual environment as follows.:: | ||
|
||
$ virtualenv -p python3 .venv | ||
|
||
Once the virtual environment is created, activate it by running:: | ||
|
||
$ source .venv/bin/activate | ||
|
||
Any Python libraries installed will now be contained within this virtual | ||
environment. To deactivate the environment, simply run:: | ||
$ deactivate | ||
|
||
|
||
.. _Tutorials: https://github.com/HazyResearch/fonduer-tutorials | ||
.. _homebrew: https://brew.sh | ||
.. _virtualenv: https://virtualenv.pypa.io/en/stable/ | ||
.. _see changelog: https://poppler.freedesktop.org/releases.html |