You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A high-level interface developed by [Machine Intelligence Laboratory](https://mipt.ai/en) for [BigARTM](https://github.com/bigartm/bigartm) library.
24
25
25
-
### What is TopicNet?
26
26
27
-
TopicNet is a high-level interface developed by [Machine Intelligence Laboratory](https://mipt.ai/en) for [BigARTM](https://github.com/bigartm/bigartm) library.
27
+
## What is TopicNet?
28
28
29
-
```TopicNet``` library was created to assist in the task of building topic models. It aims at automating model training routine freeing more time for artistic process of constructing a target functional for the task at hand.
29
+
30
+
`TopicNet` library was created to assist in the task of building topic models.
31
+
It aims at automating model training routine freeing more time for artistic process of constructing a target functional for the task at hand.
30
32
31
33
Consider using TopicNet if:
32
34
@@ -35,7 +37,7 @@ Consider using TopicNet if:
35
37
* you want to build a good topic model quickly (out-of-box, with default parameters).
36
38
* you have an ARTM model at hand and you want to explore it's topics.
37
39
38
-
`TopicNet` provides an infrastructure for your prototyping (`Experiment` class) and helps to observe results of your actions via `viewers` module.
40
+
`TopicNet` provides an infrastructure for your prototyping with the help of `Experiment` class and helps to observe results of your actions via `viewers` module.
39
41
40
42
<p>
41
43
<div align="center">
@@ -51,55 +53,94 @@ Consider using TopicNet if:
51
53
</p>
52
54
53
55
54
-
###How to start?
56
+
## How to start
55
57
56
58
Define `TopicModel` from an ARTM model at hand or with help from `model_constructor` module, where you can set models main parameters. Then create an `Experiment`, assigning a root position to this model and path to store your experiment. Further, you can define a set of training stages by the functionality provided by the `cooking_machine.cubes` module.
57
59
58
-
Further you can read documentation [here](https://machine-intelligence-laboratory.github.io/TopicNet/). Currently we are in the process of imporving it.
60
+
Further you can read documentation [here](https://machine-intelligence-laboratory.github.io/TopicNet/).
59
61
60
-
## How to install TopicNet
61
62
62
-
**Core library functionality is based on BigARTM library** which required manual installation on all systems.
63
-
Currently we have working solution for Linux users:
64
-
```
63
+
# Installation
64
+
65
+
**Core library functionality is based on BigARTM library**.
66
+
So BigARTM should also be installed on the machine.
67
+
Fortunately, the installation process should not be so difficult now.
68
+
Below are the detailed explanations.
69
+
70
+
71
+
## Via pip
72
+
73
+
The easiest way to install everything is via `pip` (but currently works fine only for Linux users!)
74
+
75
+
```bash
65
76
pip install topicnet
66
77
```
67
-
as it is currently awailiable to install BigARTM on linux systems via `pip`. We hoping to bring `pip` installation support to other systems, hovewer right now you may find the following guide useful.
68
78
69
-
To avoid installing BigARTM you can use [docker images](https://hub.docker.com/r/xtonev/bigartm/tags) with preinstalled different versions of BigARTM library in them.
79
+
The command also installs BigARTM library, not only TopicNet.
70
80
71
-
#### Using docker image
72
-
```
81
+
If working on Windows or Mac, you should install BigARTM by yourself first, then `pip install topicnet` will work just fine.
82
+
We are hoping to bring all-in-`pip` installation support to the mentioned systems.
83
+
However, right now you may find the following guide useful.
84
+
85
+
To avoid installing BigARTM you can use [docker images](https://hub.docker.com/r/xtonev/bigartm/tags) with preinstalled different versions of BigARTM library:
86
+
87
+
```bash
73
88
docker pull xtonev/bigartm:v0.10.0
74
89
docker run -t -i xtonev/bigartm:v0.10.0
75
90
```
76
-
#### Check if import is sucessfull
77
-
```
91
+
92
+
Checking if all installed successfully:
93
+
94
+
```bash
78
95
python3
79
96
import artm
80
97
artm.version()
81
98
```
82
99
83
100
Alternatively, you can follow [BigARTM installation manual](https://bigartm.readthedocs.io/en/stable/installation/index.html).
84
-
After setting up the environment you can fork this repository or use ```pip install topicnet``` to install the library.
101
+
After setting up the environment you can fork this repository or use `pip install topicnet` to install the library.
102
+
103
+
104
+
## From source
85
105
86
-
## How to use TopicNet
106
+
One can also install the library from GitHub, which may give more flexibility in developing (for example, making one's own viewers or regularizers a part of the module as .py files)
87
107
88
-
Let's say you have a handful of raw text mined from some source and you want to perform some topic modelling on them. Where should you start?
89
-
### Data Preparation
90
-
Every ML problem starts with data preprocess step. TopicNet does not perform data preprocessing itself. Instead, it demands data being prepared by the user and loaded via [Dataset class.](topicnet/cooking_machine/dataset.py)
0 commit comments