Update README.md
Browse files
README.md
CHANGED
|
@@ -62,18 +62,6 @@ df = dataset.to_pandas()
|
|
| 62 |
print(df.head())
|
| 63 |
```
|
| 64 |
|
| 65 |
-
## Data Processing & Cleaning Pipeline
|
| 66 |
-
|
| 67 |
-
The raw data contained significant noise, web scraping artifacts, and duplicate entries. A rigorous multi-step data cleaning pipeline was applied using Python, `datasets`, and `pandas`:
|
| 68 |
-
|
| 69 |
-
1. **Noise Filtering:** Dropped completely empty or extremely short rows (less than 10 characters) that provide no context.
|
| 70 |
-
2. **Artifact Removal:** Filtered out scraping artifacts, such as template errors starting with punctuation marks (e.g., `, İtalya'nın...`) and blocks consisting mainly of unreadable ASCII or newline characters.
|
| 71 |
-
3. **Alphanumeric Ratio Check:** Rows with less than a 30% alphanumeric character ratio were discarded to eliminate symbol dumps.
|
| 72 |
-
4. **Whitespace Normalization (Token Optimization):**
|
| 73 |
-
- Reduced excessive consecutive newlines (3 or more) to standard double newlines (`\n\n`) to preserve paragraph structure without wasting the model's context window (tokens).
|
| 74 |
-
- Normalized multiple consecutive spaces/tabs into a single space.
|
| 75 |
-
5. **Deduplication:** Converted to a Pandas DataFrame to perform exact string matching. A total of **2,796 duplicate texts** (mostly repetitive agency news and copied paragraphs) were permanently deleted to prevent model overfitting.
|
| 76 |
-
|
| 77 |
## Dataset Structure
|
| 78 |
|
| 79 |
The dataset contains a single feature:
|
|
|
|
| 62 |
print(df.head())
|
| 63 |
```
|
| 64 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 65 |
## Dataset Structure
|
| 66 |
|
| 67 |
The dataset contains a single feature:
|