Python ile NLP için Özellik Mühendisliği
Rounak Banik
Data Scientist
| Okuma kolaylığı skoru | Sınıf düzeyi |
|---|---|
| 90-100 | 5 |
| 80-90 | 6 |
| 70-80 | 7 |
| 60-70 | 8-9 |
| 50-60 | 10-12 |
| 30-50 | Üniversite |
| 0-30 | Üniversite mezunu |
| Fog indeksi | Sınıf düzeyi |
|---|---|
| 17 | Üniversite mezunu |
| 16 | Üniversite 4. sınıf |
| 15 | Üniversite 3. sınıf |
| 14 | Üniversite 2. sınıf |
| 13 | Üniversite 1. sınıf |
| 12 | Lise 4. sınıf |
| 11 | Lise 3. sınıf |
| Fog indeksi | Sınıf düzeyi |
|---|---|
| 10 | Lise 2. sınıf |
| 9 | Lise 1. sınıf |
| 8 | 8. sınıf |
| 7 | 7. sınıf |
| 6 | 6. sınıf |
# Download nltk punkt module
import nltk
nltk.download('punkt_tab')
# Import the Readability class from readability import Readability# Create a Readability Object readability_scores = Readability(text)# Generate scores gf = readability_scores.gunning_fog() print(gf.score())
16.26
Python ile NLP için Özellik Mühendisliği