-
Django app to navigate a corpus annotated by PASRL
-
Requires django v1.8.4
-
App presented in Ruiz, Clément and Poibeau 2016 (LREC and DH conferences), also part of my thesis (Ruiz Fabo, 2017).
-
A help site for the app is https://sites.google.com/site/climatenlp/home
-
Create a mysql DB according to the infos on pasrl_ui/settings.py
-
Create a log for the app with write access (/var/log/django/pasrl_ui.log, as in pasrl_ui/settings.py, or modify the path to the log in the settings file and create it at that path)
-
Run
$ python manage.py migrate $ python manage.py createsuperuser $ python manage.py runserver #server de dev
Using a Django fixture, created from the delimited outputs of PASRL (propositions extracted from the corpus).
$ python manage.py flush
$ python manage.py migrate
# from ./pasrl_ui/ext_scripts, run
./create_fixture.sh INPUT_FILE
# this will create ../ext_data/json/INPUT_FILE_final.json, which you do loaddata on
$ python manage.py loaddata INPUT_FILE_final.json
$ python manage.py createsuperuser
Normal way for a Django app:
python manage.py runserver PORT_NUMBER