I am trying to install anaforatools and running into a whole heap of problems.
I really only need the evaluation tool to get the Recall, Precision and F1 scores, but I understand I first need to install Anafora, which requires Apache2, Django and wsgi_mod. If there was an easier may around this, I would be only too delighted!
I have installed Django and wsgi in a virtual environment and I get as far the the It Worked - Congratulations page (as per very nice tutorial at https://www.digitalocean.com/community/tutorials/how-to-serve-django-applications-with-apache-and-mod_wsgi-on-ubuntu-16-04
So far so good... I have a drectory structure
I downloaded the Anafora code - directory structure is
Where should this code go? I tried putting it in myproject as a new Django app.
When I do this, and go to localhost/myproject/anafora or localhost/anafora in the browser, I get error message "No module named urls" in module myproject/urls.py. urlpatterns = [
I also tried url(r'^anafora/', include('anafora.src.main.web.urls')), but to no avail.
I have updated /etc/apache2/site-available/000-default.conf with
Alias /anafora/static /home/catherine/myproject/anafora/src/main/static
WSGIScriptAlias /anafora /home/catherine/myproject/anafora/src/main/web/wsgi.py
I am a little unsure about the WSGIPythonPath. When I add this to 000-default.conf, Apache2 won't start.
Some other problems I hit along the way - "cannot import name patterns". This seems to be a common problem.
I am running
Perhaps I'm over-complicating this - I hope so - and maybe someone will give me an easy solution.