Joblib
adgw commited on
Commit
1e1df41
Β·
verified Β·
1 Parent(s): 4760435

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +17 -1
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
+