Quick start
This package provides a user interface for PerfectExtractor in the form of a Django web application. It can be used as part of bigger app (such as TimeAlign) or stand-alone.
How to install inside another Django app:
- Add "perfectextractor_ui" to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [
...
'widget_tweaks',
'perfectextractor_ui,
]
- Include the perfectextractor_ui URLconf in your project urls.py like this:
path('perfectextractor/', include('perfectextractor_ui.urls')),
-
Run
python manage.py migrate
to create the required models. -
Run your app and configure your corpora in the admin panel.
How to run stand-alone:
- Create a python virtual environment for running perfectextractor-ui:
virtualenv -ppython3 /path/to/venv/
source /path/to/venv/bin/activate
- Install package and requirements:
cd /path/to/perfectextractor-ui
pip install -r requirements.txt
pip install .
-
Run
python manage.py migrate
to create the required models. -
Start the app:
python manage.py runserver
- Configure your corpora in the admin panel (e.g. http://localhost:8000/admin/)