Views
No views yet
1from transformers import pipeline
2
3pipe = pipeline("text-classification", model="yeniguno/turkish-gibberish-detection-ft")
4
5examples = [
6 "bugün hava çok güzel, dışarı çıkalım mı?",
7 "asdfghjk qwe!!! 🙃🙃🙃",
8 "bgn asdqwe güzel qqqqqqqqqq"
9]
10
11for text in examples:
12 print(text, "->", pipe(text)[0])TURKCELL/gibberish-sentence-detection-model-tr0 → ok — meaningful Turkish text1 → gibberish — meaningless or noisy text (nonsense, random keyboard input, malformed words)| Label | Count | Description |
|---|---|---|
| 0 (ok) | 651,431 | valid, meaningful Turkish text |
| 1 (gibberish) | 699,999 | random keyboard strings, misspelled or malformed text |
| Split | Accuracy | Macro-F1 | F1(ok) | F1(gibberish) |
|---|---|---|---|---|
| Base model | 0.6257 | 0.6254 | 0.61 | 0.64 |
| Fine-tuned model | 0.7369 | 0.7340 | 0.76 | 0.71 |