[fb2ecfe] | 1 | # django_topic_explorer |
---|
[c8f60b8] | 2 | This is an alternative (Django based) implementation of this software: https://github.com/inpho/topic-explorer. |
---|
[e56fc83] | 3 | By now this is no more than a kind of rudimentary proof of concept we hope to enrich in the forthcoming. |
---|
| 4 | |
---|
[8b4a48c] | 5 | ## By now, we use: |
---|
[e56fc83] | 6 | - Function based views. |
---|
| 7 | - Global variables: lda_c, lda_c, lda_m. |
---|
| 8 | - An already trained models which must be specified in the corresponding settings variables. |
---|
[8b4a48c] | 9 | - Urls for requests (Buttons in the interface does not work, see "Using it") |
---|
[e56fc83] | 10 | |
---|
| 11 | ## In the forthcoming, we hope to: |
---|
[62ccdc8] | 12 | - Provide user interface to select a corpus on the fly (not sure how) from a determined set. |
---|
[e56fc83] | 13 | - Not use global variables. |
---|
| 14 | - Develop some per-document visualization. |
---|
| 15 | - ... |
---|
| 16 | |
---|
[8b4a48c] | 17 | ## Using it: |
---|
[e56fc83] | 18 | |
---|
[8b4a48c] | 19 | ...# python manage.py runserver |
---|
[e56fc83] | 20 | |
---|
[8b4a48c] | 21 | 1) To request a visulization of documents ordered in terms of similarity to a determined topic, then use: |
---|
[017277b] | 22 | http://127.0.0.1:8000/topic_explorer/topic/70/10/ <br /> |
---|
[b5bfaaf] | 23 | |
---|
[017277b] | 24 | http://127.0.0.1:8000/topic_explorer --> App Url <br /> |
---|
| 25 | /topic --> Order by topic <br /> |
---|
| 26 | /70 --> Model with 70 topics <br /> |
---|
| 27 | /10 --> Topic (from the topic legend) in terms of which documents will be ordered <br /> |
---|
[b5bfaaf] | 28 | |
---|
[8b4a48c] | 29 | |
---|
| 30 | 2) To request a visulization of documents ordered in terms of similarity to a determined document, then use: |
---|
[017277b] | 31 | http://127.0.0.1:8000/topic_explorer/doc/70/AP881107-0210/ <br /> |
---|
[b5bfaaf] | 32 | |
---|
[017277b] | 33 | http://127.0.0.1:8000/topic_explorer/ --> App url <br /> |
---|
| 34 | /doc --> Order by document <br /> |
---|
| 35 | /70 --> Number of topics <br /> |
---|
| 36 | /AP881107-0210 --> Document in terms of which the remaining documents will be ordered <br /> |
---|
[e56fc83] | 37 | |
---|