Feature Engineering für NLP in Python
Rounak Banik
Data Scientist
| Reading-Ease-Score | Klassenstufe |
|---|---|
| 90-100 | 5 |
| 80-90 | 6 |
| 70-80 | 7 |
| 60-70 | 8-9 |
| 50-60 | 10-12 |
| 30-50 | College |
| 0-30 | College Graduate |
| Fog Index | Klassenstufe |
|---|---|
| 17 | College Graduate |
| 16 | College Senior |
| 15 | College Junior |
| 14 | College Sophomore |
| 13 | College Freshman |
| 12 | High School Senior |
| 11 | High School Junior |
| Fog Index | Klassenstufe |
|---|---|
| 10 | High School Sophomore |
| 9 | High School Freshman |
| 8 | Eighth Grade |
| 7 | Seventh Grade |
| 6 | Sixth Grade |
# 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
Feature Engineering für NLP in Python