Pythonで学ぶNLPの特徴量エンジニアリング
Rounak Banik
Data Scientist
| 読易度スコア | 学年レベル |
|---|---|
| 90-100 | 5 |
| 80-90 | 6 |
| 70-80 | 7 |
| 60-70 | 8-9 |
| 50-60 | 10-12 |
| 30-50 | 大学 |
| 0-30 | 大学卒 |
| Fog指数 | 学年レベル |
|---|---|
| 17 | 大学卒 |
| 16 | 大学4年 |
| 15 | 大学3年 |
| 14 | 大学2年 |
| 13 | 大学1年 |
| 12 | 高校3年 |
| 11 | 高校2年 |
| Fog指数 | 学年レベル |
|---|---|
| 10 | 高校1年 |
| 9 | 中学3年 |
| 8 | 中学2年 |
| 7 | 中学1年 |
| 6 | 小学6年 |
# 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で学ぶNLPの特徴量エンジニアリング