1 | # django_topic_explorer |
---|
2 | This is an alternative (Django based) implementation of this software: https://github.com/inpho/topic-explorer. |
---|
3 | By now this is no more than a kind of rudimentary proof of concept we hope to enrich in the forthcoming. |
---|
4 | |
---|
5 | ## By now, we use: |
---|
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. |
---|
9 | - Urls for requests (Buttons in the interface does not work, see "Using it") |
---|
10 | |
---|
11 | ## In the forthcoming, we hope to: |
---|
12 | - Provide user interface to select a corpus on the fly (not sure how) from a determined set. |
---|
13 | - Not use global variables. |
---|
14 | - Develop some per-document visualization. |
---|
15 | - ... |
---|
16 | |
---|
17 | ## Using it: |
---|
18 | |
---|
19 | ...# python manage.py runserver |
---|
20 | |
---|
21 | 1) To request a visulization of documents ordered in terms of similarity to a determined topic, then use: |
---|
22 | http://127.0.0.1:8000/topic_explorer/topic/70/10/ <br /> |
---|
23 | |
---|
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 /> |
---|
28 | |
---|
29 | |
---|
30 | 2) To request a visulization of documents ordered in terms of similarity to a determined document, then use: |
---|
31 | http://127.0.0.1:8000/topic_explorer/doc/70/AP881107-0210/ <br /> |
---|
32 | |
---|
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 /> |
---|
37 | |
---|