gipplab / AnnoMathTeX

>>AnnoMathTeX<< - a LaTeX formula annotation facilitation and recommendation tool for STEM documents
Apache License 2.0
6 stars 2 forks source link

How do I run the program? #1

Closed physikerwelt closed 5 years ago

physikerwelt commented 5 years ago

It would be nice to know how the program can be run.

philsMINT commented 5 years ago

Added README.md template

physikerwelt commented 5 years ago
(venv) physikerwelt@x1:~/git/ag-gipp/AnnoMathTeX$ git diff
diff --git a/requirements.txt b/requirements.txt
index 50e7eb9..3473320 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -13,7 +13,6 @@ cytoolz==0.9.0.1
 dill==0.2.8.2
 Django==2.1.3
 docopt==0.6.2
-en-core-web-sm==2.0.0
 html2text==2018.1.9
 idna==2.8
 isodate==0.6.0
@@ -37,7 +36,6 @@ pytest==4.2.0
 pytest-cov==2.5.1
 python-dateutil==2.7.5
 pytz==2018.7
-pywikibot==3.0.dev0
 rake-nltk==1.0.4
 rdflib==4.2.2
 regex==2018.1.10

(venv) physikerwelt@x1:~/git/ag-gipp/AnnoMathTeX$ python3 --version Python 3.6.7

physikerwelt commented 5 years ago

nice progress. I needed to run the following commands to reach the upload page.

 pip3 install jquery_unparam
cd annomathtex
./mange.py migrate
python 3
  >>> import nltk
  >>> nltk.download('stopwords')
./manage.py runserver

running manage.py from another directory caused that the path is incorrect.

[Errno 2] No such file or directory: '/home/moritz/git/ag-gipp/AnnoMathTeX/annomathtex/recommendation/evaluation_files/Evaluation_list_all.rtf'
physikerwelt commented 5 years ago

To upload the test file I needed to download the following nltk packages in addition nltk.download('punkt') nltk.download('averaged_perceptron_tagger')

philsMINT commented 5 years ago

Deployed on wmflabs