Update README.md
Browse files
README.md
CHANGED
|
@@ -6,19 +6,96 @@ tags:
|
|
| 6 |
- pytorch
|
| 7 |
---
|
| 8 |
|
| 9 |
-
#
|
| 10 |
|
| 11 |
-
|
| 12 |
|
| 13 |
-
##
|
| 14 |
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
|
| 22 |
```
|
| 23 |
-
|
|
|
|
|
|
|
| 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 |
+
|