herman3996 commited on
Commit
f5fddd0
Β·
verified Β·
1 Parent(s): 400950c

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +87 -10
README.md CHANGED
@@ -6,19 +6,96 @@ tags:
6
  - pytorch
7
  ---
8
 
9
- # Comment Network
10
 
11
- ## Setup
12
 
13
- ### YouTube Data API Key Setup
14
 
15
- 1. Go to [Google Cloud Console - API Credentials](https://console.cloud.google.com/apis/credentials)
16
- 2. Create a new project or select an existing one
17
- 3. Click **Create Credentials** β†’ **API Key**
18
- 4. Copy the generated API key + https://console.developers.google.com/apis/api/youtube.googleapis.com/overview
19
- 5. Create a `.env` file in the project root (or copy from `.env-example`)
20
- 6. Paste your API key in the `.env` file:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21
 
22
  ```
23
- YOUTUBE_API_KEY=your_api_key_here
 
 
24
  ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
  - pytorch
7
  ---
8
 
9
+ # Comments Classifier (RuBERT fine-tune)
10
 
11
+ A Russian-language comment classification model fine-tuned on top of **RuBERT**. Developed as part of the Lubarsky Comments Model project.
12
 
13
+ ## Overview
14
 
15
+ The model was fine-tuned on a labeled dataset of Russian-language comments. Its goal is to automatically determine the category/type of a given comment.
16
+
17
+ The repository contains three ready-to-use **standalone applications** built with **PyInstaller** β€” no Python installation or dependencies required:
18
+
19
+ | File | Size | Description |
20
+ |---|---|---|
21
+ | `run_trainer.zip` | ~2.6 GB | Application for fine-tuning the model |
22
+ | `run_prediction.zip` | ~2.5 GB | Application for running predictions |
23
+ | `run_classifier.zip` | ~60 MB | Application for manual comment classification |
24
+ | `QA_dataset.csv` | ~75 kB | Quality assurance dataset |
25
+
26
+ ---
27
+
28
+ ## Quick Start
29
+
30
+ > ⚠️ **No Python installation required** β€” all three programs are self-contained `.exe` applications.
31
+
32
+ ### 1. Download the ZIP archive
33
+
34
+ Download one or more archives from this page.
35
+
36
+ ### 2. Extract the archive
37
+
38
+ Extract the downloaded archive to a convenient location. The folder structure will look like this:
39
 
40
  ```
41
+ run_classifier/
42
+ β”œβ”€β”€ _internal/ # internal dependencies (do not modify)
43
+ └── run_classifier.exe # executable file
44
  ```
45
+
46
+ ### 3. Run the `.exe`
47
+
48
+ Simply double-click the `.exe` file or launch it from the terminal:
49
+
50
+ ```bash
51
+ .\run_classifier.exe
52
+ .\run_prediction.exe
53
+ .\run_trainer.exe
54
+ ```
55
+
56
+ ---
57
+
58
+ ## Application Descriptions
59
+
60
+ **`run_classifier`** β€” a tool for manual or batch comment classification. Useful for quick review and labeling.
61
+
62
+ **`run_prediction`** β€” the main inference application. Takes comments as input and returns predicted classes.
63
+
64
+ **`run_trainer`** β€” fine-tunes the model on new data. Allows you to retrain the classifier on your own dataset.
65
+
66
+ ---
67
+
68
+ ## Environment Configuration
69
+
70
+ The repository includes a `.env` file with environment variables (e.g., file paths, parameters). Edit it as needed before running the applications.
71
+
72
+ ---
73
+
74
+ ## Source Code
75
+
76
+ The full source code (training, data labeling, scripts) is available on GitHub:
77
+ πŸ‘‰ [gerageragera39/Lubarsky_Comments_Model](https://github.com/gerageragera39/Lubarsky_Comments_Model)
78
+
79
+ Source repository structure:
80
+ - `data_hand_classifier/` β€” tools for manual data labeling
81
+ - `rubert_trainer/` β€” RuBERT fine-tuning scripts
82
+ - `dataset.csv` β€” main training dataset
83
+ - `test_comments.csv` β€” test set
84
+ - `result.png` β€” training results visualization
85
+
86
+ ---
87
+
88
+ ## Technical Details
89
+
90
+ - **Base model:** RuBERT (DeepPavlov)
91
+ - **Framework:** PyTorch + HuggingFace Transformers
92
+ - **Build:** PyInstaller (standalone Windows executables)
93
+ - **Data language:** Russian
94
+ - **Task:** Text Classification
95
+
96
+ ---
97
+
98
+ ## License
99
+
100
+ MIT License
101
+