Update README.md
Browse files
README.md
CHANGED
|
@@ -90,6 +90,7 @@ Ensure your project follows this structure:
|
|
| 90 |
β βββ model.joblib # The trained XGBoost model
|
| 91 |
β βββ scaler.pkl # The scikit-learn scaler
|
| 92 |
βββ output/ # Output directory for processed files
|
|
|
|
| 93 |
βββ main_parquet_spacy_jsonl.py # The main processing script jsonl
|
| 94 |
βββ main_parquet_spacy_parquet.py # The main processing script parquet
|
| 95 |
βββ predictor_parquet_spacy.py # The feature extraction module
|
|
@@ -139,4 +140,19 @@ Dodawanie do kolejki: input_parquet\docs.parquet
|
|
| 139 |
<dataframe head>
|
| 140 |
Processing time: 47.61986541748047 seconds
|
| 141 |
Wszystkie pliki zostaΕy przetworzone!
|
| 142 |
-
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
β βββ model.joblib # The trained XGBoost model
|
| 91 |
β βββ scaler.pkl # The scikit-learn scaler
|
| 92 |
βββ output/ # Output directory for processed files
|
| 93 |
+
βββ dummy.py # The interactive testing script
|
| 94 |
βββ main_parquet_spacy_jsonl.py # The main processing script jsonl
|
| 95 |
βββ main_parquet_spacy_parquet.py # The main processing script parquet
|
| 96 |
βββ predictor_parquet_spacy.py # The feature extraction module
|
|
|
|
| 140 |
<dataframe head>
|
| 141 |
Processing time: 47.61986541748047 seconds
|
| 142 |
Wszystkie pliki zostaΕy przetworzone!
|
| 143 |
+
```
|
| 144 |
+
|
| 145 |
+
## 6. Interactive Testing (dummy.py)
|
| 146 |
+
|
| 147 |
+
For quick, single-text analysis or model debugging, you can use the `dummy.py` script. It runs in a single-threaded, interactive mode.
|
| 148 |
+
|
| 149 |
+
### How to Use
|
| 150 |
+
|
| 151 |
+
1. Run the script from your terminal:
|
| 152 |
+
```bash
|
| 153 |
+
python dummy.py
|
| 154 |
+
```
|
| 155 |
+
2. The script will load the models and prompt you for input with a `>` symbol.
|
| 156 |
+
3. Type any Polish text and press Enter. The script will immediately display the predicted category and confidence score.
|
| 157 |
+
4. To exit the script, type `quit` or `exit` and press Enter.
|
| 158 |
+
|