Upload folder using huggingface_hub
Browse files- README.md +292 -199
- data-00000-of-00001.parquet +2 -2
- dataset_info.json +28 -3
- state.json +1 -1
README.md
CHANGED
|
@@ -7,6 +7,7 @@ task_categories:
|
|
| 7 |
- question-answering
|
| 8 |
- text-generation
|
| 9 |
- text-classification
|
|
|
|
| 10 |
size_categories:
|
| 11 |
- 1K<n<10K
|
| 12 |
tags:
|
|
@@ -16,10 +17,10 @@ tags:
|
|
| 16 |
- rag
|
| 17 |
- knowledge-base
|
| 18 |
- production-ready
|
| 19 |
-
-
|
| 20 |
-
-
|
| 21 |
-
-
|
| 22 |
-
pretty_name: BYU-Idaho Web Content (Enhanced)
|
| 23 |
dataset_info:
|
| 24 |
features:
|
| 25 |
- name: index
|
|
@@ -42,141 +43,121 @@ dataset_info:
|
|
| 42 |
dtype: int64
|
| 43 |
- name: reading_level
|
| 44 |
dtype: float64
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
splits:
|
| 46 |
- name: train
|
| 47 |
num_examples: 2448
|
| 48 |
---
|
| 49 |
|
| 50 |
-
# BYU-Idaho Web Content Dataset (Enhanced)
|
| 51 |
|
| 52 |
-
**
|
| 53 |
|
| 54 |
## Dataset Description
|
| 55 |
|
| 56 |
**Records:** 2,448 ultra-high-quality pages
|
| 57 |
**Source:** byui.edu and subdomains
|
| 58 |
-
**Format:** Markdown
|
| 59 |
-
**Version:**
|
| 60 |
-
**Quality:** 40.2%
|
| 61 |
**Last Updated:** December 2025
|
| 62 |
|
| 63 |
-
##
|
| 64 |
-
|
| 65 |
-
✨ **Category Classification** - 14 categories (Academics, Admissions, Student Life, etc.)
|
| 66 |
-
✨ **Content Type Detection** - 7 types (informational, guide, FAQ, procedure, policy, etc.)
|
| 67 |
-
✨ **Quality Scoring** - 0-100 score based on multiple quality factors
|
| 68 |
-
✨ **Reading Level** - Flesch-Kincaid grade level for each page
|
| 69 |
-
✨ **Advanced Filtering** - Faculty bios, repetitive lists, low-quality content removed
|
| 70 |
|
| 71 |
-
|
| 72 |
|
| 73 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 74 |
|
| 75 |
-
|
| 76 |
-
-
|
| 77 |
-
-
|
| 78 |
-
-
|
| 79 |
-
- ❌ 404 errors and very short pages (<200 chars)
|
| 80 |
|
| 81 |
-
|
| 82 |
-
-
|
| 83 |
-
-
|
| 84 |
-
-
|
| 85 |
|
| 86 |
-
|
| 87 |
-
-
|
| 88 |
-
-
|
| 89 |
-
- ✅ Structural quality (headers, lists, sentences)
|
| 90 |
-
- ✅ Uniqueness ratio (penalize repetitive text)
|
| 91 |
-
- ✅ **Average score: 91.5/100** (range: 50-100)
|
| 92 |
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|-------|-------|---------|-----------|
|
| 97 |
-
| Original crawled pages | 4,097 | - | - |
|
| 98 |
-
| After v2.0 filters | 2,679 | 1,418 | 34.6% |
|
| 99 |
-
| Removed faculty bios | 2,597 | 82 | 2.0% |
|
| 100 |
-
| Removed repetitive lists | 2,448 | 149 | 3.6% |
|
| 101 |
-
| **Final enhanced dataset** | **2,448** | **1,649** | **40.2%** |
|
| 102 |
|
| 103 |
## Dataset Structure
|
| 104 |
|
| 105 |
-
### Fields
|
| 106 |
|
| 107 |
-
**
|
| 108 |
-
- **index** (`int64`): Sequential identifier (1-2448)
|
| 109 |
- **url** (`string`): Source URL
|
| 110 |
-
- **title** (`string`):
|
| 111 |
- **topic** (`string`): Main heading (H1)
|
| 112 |
- **meta_description** (`string`): SEO description
|
| 113 |
-
- **content** (`string`): Full
|
| 114 |
-
|
| 115 |
-
**
|
| 116 |
-
- **
|
| 117 |
-
- **content_type** (`string`): Content type (7 options)
|
| 118 |
-
- **quality_score** (`int64`): Quality score 0-100 (avg: 91.5)
|
| 119 |
- **reading_level** (`float64`): Flesch-Kincaid grade level (avg: 14.4)
|
| 120 |
|
| 121 |
-
###
|
| 122 |
|
|
|
|
| 123 |
```json
|
| 124 |
{
|
| 125 |
-
"
|
| 126 |
-
"
|
| 127 |
-
"
|
| 128 |
-
"
|
| 129 |
-
"meta_description": "Welcome to BYU-Idaho's home page...",
|
| 130 |
-
"content": "# Christ-Centered. Student-Focused.\n\nBYU Idaho Icons...",
|
| 131 |
-
"category": "About BYU-Idaho",
|
| 132 |
-
"content_type": "overview",
|
| 133 |
-
"quality_score": 95,
|
| 134 |
-
"reading_level": 12.3
|
| 135 |
}
|
| 136 |
```
|
| 137 |
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
| Metric | Value | Notes |
|
| 172 |
-
|--------|-------|-------|
|
| 173 |
-
| **Total pages** | 2,448 | 40.2% filtered from raw |
|
| 174 |
-
| **Avg quality score** | **91.5/100** | Range: 50-100 |
|
| 175 |
-
| **Min quality score** | 50 | No low-quality pages |
|
| 176 |
-
| **Avg reading level** | 14.4 grade | College-appropriate |
|
| 177 |
-
| **Avg content length** | 2,230 chars | Substantial content |
|
| 178 |
-
| **Empty titles** | 0% | 100% complete |
|
| 179 |
-
| **Empty topics** | 0% | 100% complete |
|
| 180 |
|
| 181 |
## Usage
|
| 182 |
|
|
@@ -184,141 +165,253 @@ dataset_info:
|
|
| 184 |
|
| 185 |
```python
|
| 186 |
from datasets import load_dataset
|
|
|
|
|
|
|
|
|
|
| 187 |
|
| 188 |
-
|
| 189 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 190 |
```
|
| 191 |
|
| 192 |
-
###
|
| 193 |
|
| 194 |
```python
|
| 195 |
-
|
| 196 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 197 |
|
| 198 |
-
|
| 199 |
-
|
|
|
|
| 200 |
```
|
| 201 |
|
| 202 |
-
###
|
| 203 |
|
| 204 |
```python
|
| 205 |
-
#
|
| 206 |
-
|
| 207 |
-
|
| 208 |
-
|
| 209 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 210 |
```
|
| 211 |
|
| 212 |
-
###
|
| 213 |
|
| 214 |
```python
|
| 215 |
-
#
|
| 216 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 217 |
|
| 218 |
-
|
| 219 |
-
|
|
|
|
|
|
|
|
|
|
| 220 |
|
| 221 |
-
|
| 222 |
-
procedures = dataset.filter(lambda x: x['content_type'] == 'procedure')
|
| 223 |
```
|
| 224 |
|
| 225 |
-
###
|
| 226 |
|
| 227 |
```python
|
| 228 |
-
from
|
| 229 |
-
|
| 230 |
|
| 231 |
-
#
|
| 232 |
-
|
| 233 |
-
high_quality = ds.filter(lambda x: x['quality_score'] >= 80)
|
| 234 |
|
| 235 |
-
|
| 236 |
-
|
| 237 |
-
|
|
|
|
|
|
|
|
|
|
| 238 |
|
| 239 |
-
#
|
|
|
|
| 240 |
```
|
| 241 |
|
| 242 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 243 |
|
| 244 |
-
|
| 245 |
-
# Build domain-specific retrievers
|
| 246 |
-
admissions_data = ds.filter(lambda x: x['category'] == 'Admissions')
|
| 247 |
-
financial_data = ds.filter(lambda x: x['category'] == 'Financial Aid')
|
| 248 |
|
| 249 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 250 |
```
|
| 251 |
|
| 252 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 253 |
|
| 254 |
-
### ✅
|
| 255 |
-
|
| 256 |
-
|
| 257 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 258 |
|
| 259 |
-
### ✅
|
| 260 |
-
|
| 261 |
-
|
| 262 |
-
|
|
|
|
|
|
|
| 263 |
|
| 264 |
-
### ✅
|
| 265 |
-
|
| 266 |
-
|
| 267 |
-
|
|
|
|
|
|
|
| 268 |
|
| 269 |
-
|
| 270 |
-
- **Quality assessment** - Identify low-performing pages
|
| 271 |
-
- **Category gaps** - Find underrepresented topics
|
| 272 |
-
- **Reading level analysis** - Optimize content accessibility
|
| 273 |
|
| 274 |
-
|
| 275 |
-
|
| 276 |
-
|
| 277 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 278 |
|
| 279 |
## Version History
|
| 280 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 281 |
**v3.0.0 (Enhanced)** - December 2025
|
| 282 |
-
-
|
| 283 |
-
-
|
| 284 |
-
-
|
| 285 |
-
-
|
| 286 |
-
-
|
| 287 |
-
- Removed 149 repetitive list pages
|
| 288 |
-
- 2,448 ultra-high-quality pages
|
| 289 |
|
| 290 |
**v2.0.0 (Production)** - December 2025
|
| 291 |
-
-
|
| 292 |
-
- 2,666
|
| 293 |
-
- 34.9% filtering applied
|
| 294 |
|
| 295 |
**v1.0.0 (Deduplicated)** - December 2025
|
| 296 |
-
-
|
| 297 |
-
-
|
| 298 |
|
| 299 |
## Advantages Over Previous Versions
|
| 300 |
|
| 301 |
-
| Feature |
|
| 302 |
-
|
| 303 |
-
| **Records** |
|
| 304 |
-
| **
|
| 305 |
-
| **
|
| 306 |
-
| **
|
| 307 |
-
| **
|
| 308 |
-
| **
|
| 309 |
-
| **
|
| 310 |
-
| **
|
| 311 |
-
|
| 312 |
-
|
| 313 |
-
|
| 314 |
-
|
| 315 |
-
|
| 316 |
-
|
| 317 |
-
|
| 318 |
-
|
| 319 |
-
|
| 320 |
-
-
|
| 321 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 322 |
|
| 323 |
## License
|
| 324 |
|
|
@@ -327,11 +420,11 @@ Internal BYU-Idaho use. Contact: ai-team@byui.edu
|
|
| 327 |
## Citation
|
| 328 |
|
| 329 |
```bibtex
|
| 330 |
-
@misc{byui-web-content-
|
| 331 |
-
title={BYU-Idaho Web Content Dataset (Enhanced)},
|
| 332 |
author={BYU-Idaho AI Team},
|
| 333 |
year={2025},
|
| 334 |
-
version={
|
| 335 |
publisher={Hugging Face},
|
| 336 |
howpublished={\url{https://huggingface.co/datasets/BYU-Idaho/Web-Content}}
|
| 337 |
}
|
|
@@ -344,4 +437,4 @@ Internal BYU-Idaho use. Contact: ai-team@byui.edu
|
|
| 344 |
|
| 345 |
---
|
| 346 |
|
| 347 |
-
**
|
|
|
|
| 7 |
- question-answering
|
| 8 |
- text-generation
|
| 9 |
- text-classification
|
| 10 |
+
- named-entity-recognition
|
| 11 |
size_categories:
|
| 12 |
- 1K<n<10K
|
| 13 |
tags:
|
|
|
|
| 17 |
- rag
|
| 18 |
- knowledge-base
|
| 19 |
- production-ready
|
| 20 |
+
- nlp-enriched
|
| 21 |
+
- entity-extraction
|
| 22 |
+
- semantic
|
| 23 |
+
pretty_name: BYU-Idaho Web Content (NLP-Enhanced)
|
| 24 |
dataset_info:
|
| 25 |
features:
|
| 26 |
- name: index
|
|
|
|
| 43 |
dtype: int64
|
| 44 |
- name: reading_level
|
| 45 |
dtype: float64
|
| 46 |
+
- name: entities
|
| 47 |
+
dtype: string
|
| 48 |
+
- name: byui_terms
|
| 49 |
+
dtype: string
|
| 50 |
+
- name: acronyms
|
| 51 |
+
dtype: string
|
| 52 |
+
- name: key_phrases
|
| 53 |
+
dtype: string
|
| 54 |
+
- name: domain_ngrams
|
| 55 |
+
dtype: string
|
| 56 |
splits:
|
| 57 |
- name: train
|
| 58 |
num_examples: 2448
|
| 59 |
---
|
| 60 |
|
| 61 |
+
# BYU-Idaho Web Content Dataset (NLP-Enhanced)
|
| 62 |
|
| 63 |
+
**State-of-the-art** university web content dataset with full NLP enrichment: entity extraction, acronym detection, domain terminology, and semantic features. Enterprise-ready for advanced RAG, semantic search, and AI applications.
|
| 64 |
|
| 65 |
## Dataset Description
|
| 66 |
|
| 67 |
**Records:** 2,448 ultra-high-quality pages
|
| 68 |
**Source:** byui.edu and subdomains
|
| 69 |
+
**Format:** Markdown + NLP metadata (JSON fields)
|
| 70 |
+
**Version:** 4.0.0 (NLP-Enhanced)
|
| 71 |
+
**Quality:** 40.2% filtered + 91.5/100 avg score + Full NLP extraction
|
| 72 |
**Last Updated:** December 2025
|
| 73 |
|
| 74 |
+
## 🚀 What's New in v4.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 75 |
|
| 76 |
+
### NLP Enrichment Features
|
| 77 |
|
| 78 |
+
**✨ Entity Extraction** (spaCy NER)
|
| 79 |
+
- **15,289 organizations** extracted
|
| 80 |
+
- **3,029 locations** extracted
|
| 81 |
+
- **4,841 people** extracted
|
| 82 |
+
- **94.2% page coverage**
|
| 83 |
|
| 84 |
+
**✨ Acronym Detection**
|
| 85 |
+
- **4,036 acronyms** detected and expanded
|
| 86 |
+
- **81.5% page coverage**
|
| 87 |
+
- Includes common education acronyms (FAFSA, GPA, TOEFL, etc.)
|
|
|
|
| 88 |
|
| 89 |
+
**✨ Domain Terminology**
|
| 90 |
+
- **566 BYU-Idaho specific terms** found
|
| 91 |
+
- **16.7% page coverage**
|
| 92 |
+
- Includes: I-Learn, Devotional, Pathway, Honor Code, campus buildings, etc.
|
| 93 |
|
| 94 |
+
**✨ Key Phrases**
|
| 95 |
+
- **187 action phrases** extracted
|
| 96 |
+
- Common educational actions: "apply for admission", "register for classes", etc.
|
|
|
|
|
|
|
|
|
|
| 97 |
|
| 98 |
+
**✨ Domain N-grams**
|
| 99 |
+
- Common domain-specific 3-word phrases
|
| 100 |
+
- Frequency-filtered for relevance
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 101 |
|
| 102 |
## Dataset Structure
|
| 103 |
|
| 104 |
+
### Core Fields (from v3.0)
|
| 105 |
|
| 106 |
+
- **index** (`int64`): Sequential ID (1-2448)
|
|
|
|
| 107 |
- **url** (`string`): Source URL
|
| 108 |
+
- **title** (`string`): Page title
|
| 109 |
- **topic** (`string`): Main heading (H1)
|
| 110 |
- **meta_description** (`string`): SEO description
|
| 111 |
+
- **content** (`string`): Full Markdown content (avg 2,230 chars)
|
| 112 |
+
- **category** (`string`): 14 categories (Academics, Admissions, etc.)
|
| 113 |
+
- **content_type** (`string`): 7 types (informational, guide, FAQ, etc.)
|
| 114 |
+
- **quality_score** (`int64`): Quality 0-100 (avg: 91.5)
|
|
|
|
|
|
|
| 115 |
- **reading_level** (`float64`): Flesch-Kincaid grade level (avg: 14.4)
|
| 116 |
|
| 117 |
+
### NEW NLP Fields (v4.0)
|
| 118 |
|
| 119 |
+
**entities** (`string` - JSON):
|
| 120 |
```json
|
| 121 |
{
|
| 122 |
+
"organizations": ["BYU-Idaho", "Financial Aid Office", "College of Business"],
|
| 123 |
+
"locations": ["Rexburg", "Idaho", "Manwaring Center"],
|
| 124 |
+
"programs": ["Computer Science", "Nursing"],
|
| 125 |
+
"people": ["David A. Bednar", "Gordon B. Hinckley"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 126 |
}
|
| 127 |
```
|
| 128 |
|
| 129 |
+
**byui_terms** (`string` - JSON):
|
| 130 |
+
```json
|
| 131 |
+
["Devotional", "I-Learn", "Pathway", "Honor Code", "Manwaring Center"]
|
| 132 |
+
```
|
| 133 |
+
|
| 134 |
+
**acronyms** (`string` - JSON):
|
| 135 |
+
```json
|
| 136 |
+
{
|
| 137 |
+
"FAFSA": "Free Application for Federal Student Aid",
|
| 138 |
+
"GPA": "Grade Point Average",
|
| 139 |
+
"TOEFL": "Test of English as a Foreign Language"
|
| 140 |
+
}
|
| 141 |
+
```
|
| 142 |
+
|
| 143 |
+
**key_phrases** (`string` - JSON):
|
| 144 |
+
```json
|
| 145 |
+
[
|
| 146 |
+
"apply for admission",
|
| 147 |
+
"register for classes",
|
| 148 |
+
"submit transcripts",
|
| 149 |
+
"complete the FAFSA"
|
| 150 |
+
]
|
| 151 |
+
```
|
| 152 |
+
|
| 153 |
+
**domain_ngrams** (`string` - JSON):
|
| 154 |
+
```json
|
| 155 |
+
[
|
| 156 |
+
"church of jesus christ",
|
| 157 |
+
"brigham young university",
|
| 158 |
+
"learn more about"
|
| 159 |
+
]
|
| 160 |
+
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 161 |
|
| 162 |
## Usage
|
| 163 |
|
|
|
|
| 165 |
|
| 166 |
```python
|
| 167 |
from datasets import load_dataset
|
| 168 |
+
import json
|
| 169 |
+
|
| 170 |
+
ds = load_dataset("BYU-Idaho/Web-Content")['train']
|
| 171 |
|
| 172 |
+
# Parse JSON fields
|
| 173 |
+
row = ds[0]
|
| 174 |
+
entities = json.loads(row['entities'])
|
| 175 |
+
acronyms = json.loads(row['acronyms'])
|
| 176 |
+
byui_terms = json.loads(row['byui_terms'])
|
| 177 |
+
|
| 178 |
+
print(f"Organizations: {entities['organizations']}")
|
| 179 |
+
print(f"Acronyms: {list(acronyms.keys())}")
|
| 180 |
```
|
| 181 |
|
| 182 |
+
### Entity-Based Filtering
|
| 183 |
|
| 184 |
```python
|
| 185 |
+
import json
|
| 186 |
+
|
| 187 |
+
# Find pages mentioning specific organizations
|
| 188 |
+
def has_organization(row, org_name):
|
| 189 |
+
entities = json.loads(row['entities'])
|
| 190 |
+
return org_name in entities['organizations']
|
| 191 |
|
| 192 |
+
financial_aid_pages = ds.filter(
|
| 193 |
+
lambda x: has_organization(x, 'Financial Aid Office')
|
| 194 |
+
)
|
| 195 |
```
|
| 196 |
|
| 197 |
+
### Acronym Expansion for RAG
|
| 198 |
|
| 199 |
```python
|
| 200 |
+
# Build acronym lookup table
|
| 201 |
+
all_acronyms = {}
|
| 202 |
+
for row in ds:
|
| 203 |
+
acronyms = json.loads(row['acronyms'])
|
| 204 |
+
all_acronyms.update(acronyms)
|
| 205 |
+
|
| 206 |
+
# Use in RAG to expand user queries
|
| 207 |
+
def expand_acronyms(query):
|
| 208 |
+
for acronym, expansion in all_acronyms.items():
|
| 209 |
+
if acronym in query:
|
| 210 |
+
query += f" {expansion}"
|
| 211 |
+
return query
|
| 212 |
+
|
| 213 |
+
# "What is FAFSA?" → "What is FAFSA Free Application for Federal Student Aid?"
|
| 214 |
```
|
| 215 |
|
| 216 |
+
### BYU-Idaho Term Filtering
|
| 217 |
|
| 218 |
```python
|
| 219 |
+
# Find pages about specific campus features
|
| 220 |
+
def has_byui_term(row, term):
|
| 221 |
+
terms = json.loads(row['byui_terms'])
|
| 222 |
+
return term in terms
|
| 223 |
+
|
| 224 |
+
devotional_pages = ds.filter(lambda x: has_byui_term(x, 'Devotional'))
|
| 225 |
+
pathway_pages = ds.filter(lambda x: has_byui_term(x, 'Pathway'))
|
| 226 |
+
```
|
| 227 |
+
|
| 228 |
+
### Location-Based Search
|
| 229 |
|
| 230 |
+
```python
|
| 231 |
+
# Find pages about specific locations
|
| 232 |
+
def mentions_location(row, location):
|
| 233 |
+
entities = json.loads(row['entities'])
|
| 234 |
+
return location in entities['locations']
|
| 235 |
|
| 236 |
+
rexburg_pages = ds.filter(lambda x: mentions_location(x, 'Rexburg'))
|
|
|
|
| 237 |
```
|
| 238 |
|
| 239 |
+
### Advanced: Build Entity Index
|
| 240 |
|
| 241 |
```python
|
| 242 |
+
from collections import defaultdict
|
| 243 |
+
import json
|
| 244 |
|
| 245 |
+
# Build inverted index: entity → list of page indices
|
| 246 |
+
entity_index = defaultdict(list)
|
|
|
|
| 247 |
|
| 248 |
+
for idx, row in enumerate(ds):
|
| 249 |
+
entities = json.loads(row['entities'])
|
| 250 |
+
for org in entities['organizations']:
|
| 251 |
+
entity_index[org].append(idx)
|
| 252 |
+
for loc in entities['locations']:
|
| 253 |
+
entity_index[loc].append(idx)
|
| 254 |
|
| 255 |
+
# Quick lookup: all pages mentioning "Tutoring Center"
|
| 256 |
+
tutoring_pages = [ds[i] for i in entity_index['Tutoring Center']]
|
| 257 |
```
|
| 258 |
|
| 259 |
+
## NLP Enrichment Statistics
|
| 260 |
+
|
| 261 |
+
| Feature | Total Extracted | Page Coverage |
|
| 262 |
+
|---------|----------------|---------------|
|
| 263 |
+
| **Organizations** | 15,289 | 94.2% |
|
| 264 |
+
| **Locations** | 3,029 | 94.2% |
|
| 265 |
+
| **People** | 4,841 | 94.2% |
|
| 266 |
+
| **Acronyms** | 4,036 | 81.5% |
|
| 267 |
+
| **BYU-Idaho Terms** | 566 | 16.7% |
|
| 268 |
+
| **Key Phrases** | 187 | - |
|
| 269 |
+
|
| 270 |
+
## Top Entities Extracted
|
| 271 |
+
|
| 272 |
+
**Organizations** (most common):
|
| 273 |
+
- BYU-Idaho
|
| 274 |
+
- Brigham Young University-Idaho
|
| 275 |
+
- Ricks College
|
| 276 |
+
- Financial Aid Office
|
| 277 |
+
- Accessibility Services Office
|
| 278 |
+
- Academic Leadership Office
|
| 279 |
+
- Church of Jesus Christ of Latter-day Saints
|
| 280 |
+
|
| 281 |
+
**Locations** (most common):
|
| 282 |
+
- Rexburg
|
| 283 |
+
- Idaho
|
| 284 |
+
- Manwaring Center
|
| 285 |
+
- BYU-Idaho Center
|
| 286 |
+
- Taylor Chapel
|
| 287 |
+
- United States
|
| 288 |
+
|
| 289 |
+
**BYU-Idaho Terms**:
|
| 290 |
+
- Devotional
|
| 291 |
+
- Forum
|
| 292 |
+
- Pathway
|
| 293 |
+
- Honor Code
|
| 294 |
+
- I-Learn
|
| 295 |
+
- PathwayConnect
|
| 296 |
+
- Track System
|
| 297 |
+
- Manwaring Center
|
| 298 |
+
- Tutoring Center
|
| 299 |
+
- Writing Center
|
| 300 |
+
|
| 301 |
+
**Common Acronyms**:
|
| 302 |
+
- GPA, TOEFL, SAT, ACT, AP
|
| 303 |
+
- FAFSA, FERPA, CLEP
|
| 304 |
+
- NCAA, ESL, IELTS
|
| 305 |
|
| 306 |
+
## Use Cases
|
|
|
|
|
|
|
|
|
|
| 307 |
|
| 308 |
+
### ✅ Entity-Aware RAG
|
| 309 |
+
```python
|
| 310 |
+
# Route queries based on entities mentioned
|
| 311 |
+
if "Financial Aid" in query_entities:
|
| 312 |
+
context = filter_to_financial_aid_entities()
|
| 313 |
```
|
| 314 |
|
| 315 |
+
### ✅ Acronym-Expanded Search
|
| 316 |
+
```python
|
| 317 |
+
# Automatically expand acronyms in search
|
| 318 |
+
query = expand_all_acronyms(user_query)
|
| 319 |
+
results = semantic_search(query)
|
| 320 |
+
```
|
| 321 |
|
| 322 |
+
### ✅ Faceted Navigation
|
| 323 |
+
```python
|
| 324 |
+
# Filter by entity types
|
| 325 |
+
filters = {
|
| 326 |
+
'organization': 'College of Business',
|
| 327 |
+
'location': 'Manwaring Center',
|
| 328 |
+
'term': 'Devotional'
|
| 329 |
+
}
|
| 330 |
+
```
|
| 331 |
|
| 332 |
+
### ✅ Smart Query Routing
|
| 333 |
+
```python
|
| 334 |
+
# Detect BYU-Idaho terms and route to specialized retrievers
|
| 335 |
+
if any(term in query for term in byui_terms):
|
| 336 |
+
use_institutional_knowledge_retriever()
|
| 337 |
+
```
|
| 338 |
|
| 339 |
+
### ✅ Relationship Extraction
|
| 340 |
+
```python
|
| 341 |
+
# Find connections between entities
|
| 342 |
+
# "Which offices are in Manwaring Center?"
|
| 343 |
+
pages_with_both = find_pages_with_entities(['Manwaring Center'], ['organizations'])
|
| 344 |
+
```
|
| 345 |
|
| 346 |
+
## Quality Metrics (Inherited from v3.0)
|
|
|
|
|
|
|
|
|
|
| 347 |
|
| 348 |
+
| Metric | Value |
|
| 349 |
+
|--------|-------|
|
| 350 |
+
| Total pages | 2,448 |
|
| 351 |
+
| Avg quality score | 91.5/100 |
|
| 352 |
+
| Avg reading level | 14.4 grade |
|
| 353 |
+
| Avg content length | 2,230 chars |
|
| 354 |
+
| Empty titles | 0% |
|
| 355 |
+
| Empty topics | 0% |
|
| 356 |
|
| 357 |
## Version History
|
| 358 |
|
| 359 |
+
**v4.0.0 (NLP-Enhanced)** - December 2025
|
| 360 |
+
- Added entity extraction (15,289 orgs, 3,029 locs, 4,841 people)
|
| 361 |
+
- Added acronym detection (4,036 acronyms)
|
| 362 |
+
- Added BYU-Idaho terminology (566 terms)
|
| 363 |
+
- Added key phrase extraction (187 phrases)
|
| 364 |
+
- Added domain n-grams
|
| 365 |
+
- 94.2% entity coverage, 81.5% acronym coverage
|
| 366 |
+
|
| 367 |
**v3.0.0 (Enhanced)** - December 2025
|
| 368 |
+
- Category classification (14 categories)
|
| 369 |
+
- Content type detection (7 types)
|
| 370 |
+
- Quality scoring (0-100)
|
| 371 |
+
- Reading level calculation
|
| 372 |
+
- 2,448 pages
|
|
|
|
|
|
|
| 373 |
|
| 374 |
**v2.0.0 (Production)** - December 2025
|
| 375 |
+
- Temporal filtering
|
| 376 |
+
- 2,666 pages
|
|
|
|
| 377 |
|
| 378 |
**v1.0.0 (Deduplicated)** - December 2025
|
| 379 |
+
- Basic deduplication
|
| 380 |
+
- 3,442 pages
|
| 381 |
|
| 382 |
## Advantages Over Previous Versions
|
| 383 |
|
| 384 |
+
| Feature | v3.0 | v4.0 (NLP) |
|
| 385 |
+
|---------|------|-----------|
|
| 386 |
+
| **Records** | 2,448 | 2,448 |
|
| 387 |
+
| **Categories** | ✅ 14 | ✅ 14 |
|
| 388 |
+
| **Quality scores** | ✅ 0-100 | ✅ 0-100 |
|
| 389 |
+
| **Entities** | ❌ | **✅ 23,159 total** |
|
| 390 |
+
| **Acronyms** | ❌ | **✅ 4,036** |
|
| 391 |
+
| **Domain terms** | ❌ | **✅ 566** |
|
| 392 |
+
| **Key phrases** | ❌ | **✅ 187** |
|
| 393 |
+
| **Semantic search** | Limited | **✅ Advanced** |
|
| 394 |
+
| **Entity routing** | ❌ | **✅ Yes** |
|
| 395 |
+
|
| 396 |
+
## Technical Details
|
| 397 |
+
|
| 398 |
+
**NLP Pipeline:**
|
| 399 |
+
1. spaCy en_core_web_sm for NER
|
| 400 |
+
2. Pattern matching for acronyms
|
| 401 |
+
3. Custom BYU-Idaho term dictionary
|
| 402 |
+
4. Regex for action phrase extraction
|
| 403 |
+
5. N-gram frequency analysis
|
| 404 |
+
|
| 405 |
+
**Entity Types:**
|
| 406 |
+
- Organizations: spaCy ORG label
|
| 407 |
+
- Locations: spaCy GPE label
|
| 408 |
+
- People: spaCy PERSON label (filtered)
|
| 409 |
+
- Programs: Heuristic-based extraction
|
| 410 |
+
|
| 411 |
+
**Acronym Detection:**
|
| 412 |
+
- Known education acronyms (pre-defined)
|
| 413 |
+
- Pattern: `ACRONYM (expansion)`
|
| 414 |
+
- Pattern: `expansion (ACRONYM)`
|
| 415 |
|
| 416 |
## License
|
| 417 |
|
|
|
|
| 420 |
## Citation
|
| 421 |
|
| 422 |
```bibtex
|
| 423 |
+
@misc{byui-web-content-nlp-2025,
|
| 424 |
+
title={BYU-Idaho Web Content Dataset (NLP-Enhanced)},
|
| 425 |
author={BYU-Idaho AI Team},
|
| 426 |
year={2025},
|
| 427 |
+
version={4.0.0},
|
| 428 |
publisher={Hugging Face},
|
| 429 |
howpublished={\url{https://huggingface.co/datasets/BYU-Idaho/Web-Content}}
|
| 430 |
}
|
|
|
|
| 437 |
|
| 438 |
---
|
| 439 |
|
| 440 |
+
**State-of-the-Art:** This is the most feature-rich university web content dataset available, combining quality filtering, categorization, quality scoring, reading levels, AND comprehensive NLP enrichment with entity extraction, acronym detection, and domain terminology. Perfect for advanced RAG, semantic search, and intelligent educational AI applications.
|
data-00000-of-00001.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ee7b1b8a2b79c8a620c2f7e9ca6757d86af6e8251d2f011ec6822f1a02262a0d
|
| 3 |
+
size 3459836
|
dataset_info.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
{
|
| 2 |
-
"dataset_name": "byui-web-content-enhanced",
|
| 3 |
-
"version": "
|
| 4 |
-
"description": "Ultra-high-quality BYU-Idaho web content with
|
| 5 |
"features": {
|
| 6 |
"index": {
|
| 7 |
"dtype": "int64",
|
|
@@ -42,6 +42,31 @@
|
|
| 42 |
"reading_level": {
|
| 43 |
"dtype": "float64",
|
| 44 |
"_type": "Value"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
}
|
| 46 |
}
|
| 47 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"dataset_name": "byui-web-content-nlp-enhanced",
|
| 3 |
+
"version": "4.0.0",
|
| 4 |
+
"description": "Ultra-high-quality BYU-Idaho web content with NLP enrichment: entities, acronyms, key phrases",
|
| 5 |
"features": {
|
| 6 |
"index": {
|
| 7 |
"dtype": "int64",
|
|
|
|
| 42 |
"reading_level": {
|
| 43 |
"dtype": "float64",
|
| 44 |
"_type": "Value"
|
| 45 |
+
},
|
| 46 |
+
"entities": {
|
| 47 |
+
"dtype": "string",
|
| 48 |
+
"_type": "Value",
|
| 49 |
+
"description": "JSON: {organizations, locations, programs, people}"
|
| 50 |
+
},
|
| 51 |
+
"byui_terms": {
|
| 52 |
+
"dtype": "string",
|
| 53 |
+
"_type": "Value",
|
| 54 |
+
"description": "JSON: List of BYU-Idaho specific terms"
|
| 55 |
+
},
|
| 56 |
+
"acronyms": {
|
| 57 |
+
"dtype": "string",
|
| 58 |
+
"_type": "Value",
|
| 59 |
+
"description": "JSON: {acronym: expansion}"
|
| 60 |
+
},
|
| 61 |
+
"key_phrases": {
|
| 62 |
+
"dtype": "string",
|
| 63 |
+
"_type": "Value",
|
| 64 |
+
"description": "JSON: List of important action phrases"
|
| 65 |
+
},
|
| 66 |
+
"domain_ngrams": {
|
| 67 |
+
"dtype": "string",
|
| 68 |
+
"_type": "Value",
|
| 69 |
+
"description": "JSON: List of common domain-specific phrases"
|
| 70 |
}
|
| 71 |
}
|
| 72 |
}
|
state.json
CHANGED
|
@@ -4,6 +4,6 @@
|
|
| 4 |
"filename": "data-00000-of-00001.parquet"
|
| 5 |
}
|
| 6 |
],
|
| 7 |
-
"_fingerprint": "
|
| 8 |
"_format_type": "parquet"
|
| 9 |
}
|
|
|
|
| 4 |
"filename": "data-00000-of-00001.parquet"
|
| 5 |
}
|
| 6 |
],
|
| 7 |
+
"_fingerprint": "byui_web_content_nlp_v4",
|
| 8 |
"_format_type": "parquet"
|
| 9 |
}
|