-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use singleton-like Meta class to store global state #36
+636
−445
Merged
Changes from 8 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
a9eb629
Use singleton-like Meta to store global state
lukehsiao c6354df
Update changelog and version
lukehsiao 5ae59a6
Only init once
lukehsiao 4d81717
Remove sqlite conditionals in context
lukehsiao 267e4fd
Update changelog
lukehsiao 6a4ff83
Rearrange badges
lukehsiao 1928f6f
Add Getting Started and update README
lukehsiao 767bcfd
Tweak comment
lukehsiao c21d439
Remove from Meta class
lukehsiao File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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 |
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 |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "0.1.4" | ||
__version__ = "0.1.5" |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove the extra spaces