Atreyu4EVR commited on
Commit
cb28c47
·
verified ·
1 Parent(s): d100759

Upload folder using huggingface_hub

Browse files
Files changed (4) hide show
  1. README.md +292 -199
  2. data-00000-of-00001.parquet +2 -2
  3. dataset_info.json +28 -3
  4. 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
- - high-quality
20
- - categorized
21
- - scored
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
- **Ultra-high-quality**, enriched web content from BYU-Idaho with category classification, quality scoring, and advanced filtering. Enterprise-ready for production RAG, search, and AI applications.
53
 
54
  ## Dataset Description
55
 
56
  **Records:** 2,448 ultra-high-quality pages
57
  **Source:** byui.edu and subdomains
58
- **Format:** Markdown with enriched metadata
59
- **Version:** 3.0.0 (Enhanced)
60
- **Quality:** 40.2% of raw data filtered, avg score 91.5/100
61
  **Last Updated:** December 2025
62
 
63
- ## Key Features
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
- ## Quality Assurance
72
 
73
- ### Enhanced Filtering Pipeline
 
 
 
 
74
 
75
- **Stage 1: Base Filters** (from v2.0)
76
- - Academic calendars and financial deadlines
77
- - Temporal content (events with dates in URLs)
78
- - Job postings and newsroom articles
79
- - ❌ 404 errors and very short pages (<200 chars)
80
 
81
- **Stage 2: Advanced Filters** (NEW in v3.0)
82
- - **Faculty bio stubs** - 82 removed (short CV-only pages)
83
- - **Repetitive list pages** - 149 removed (>65% word repetition)
84
- - **Low-quality content** - Pages scoring <40/100 removed
85
 
86
- **Stage 3: Quality Scoring** (NEW in v3.0)
87
- - Content length optimization (penalty for too short/long)
88
- - Metadata completeness check
89
- - ✅ Structural quality (headers, lists, sentences)
90
- - ✅ Uniqueness ratio (penalize repetitive text)
91
- - ✅ **Average score: 91.5/100** (range: 50-100)
92
 
93
- ### Cleaning Statistics
94
-
95
- | Stage | Count | Removed | % Removed |
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
- **Core Fields:**
108
- - **index** (`int64`): Sequential identifier (1-2448)
109
  - **url** (`string`): Source URL
110
- - **title** (`string`): Cleaned page title
111
  - **topic** (`string`): Main heading (H1)
112
  - **meta_description** (`string`): SEO description
113
- - **content** (`string`): Full page content in Markdown (avg 2,230 chars)
114
-
115
- **NEW Enrichment Fields:**
116
- - **category** (`string`): Primary category (14 options)
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
- ### Example
122
 
 
123
  ```json
124
  {
125
- "index": 1,
126
- "url": "https://www.byui.edu/",
127
- "title": "Home - BYU-Idaho",
128
- "topic": "Christ-Centered. Student-Focused.",
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
- ## Categories (14 total)
139
-
140
- | Category | Count | % | Description |
141
- |----------|-------|---|-------------|
142
- | **General** | 1,951 | 79.7% | General university content |
143
- | **Academics** | 151 | 6.2% | Programs, majors, degrees |
144
- | **Employment** | 113 | 4.6% | HR, jobs, faculty resources |
145
- | **Student Life** | 62 | 2.5% | Housing, activities, campus life |
146
- | **Financial Aid** | 54 | 2.2% | Scholarships, grants, loans |
147
- | **Career Services** | 41 | 1.7% | Internships, job placement |
148
- | **Admissions** | 37 | 1.5% | Application, requirements |
149
- | **Registration & Records** | 12 | 0.5% | Registration, transcripts |
150
- | **About BYU-Idaho** | 11 | 0.4% | Mission, history, leadership |
151
- | **Academic Support** | 8 | 0.3% | Tutoring, success services |
152
- | **Library** | 3 | 0.1% | Library services |
153
- | **Athletics & Recreation** | 3 | 0.1% | Sports, fitness |
154
- | **International** | 1 | 0.0% | Study abroad, int'l students |
155
- | **Policies & Compliance** | 1 | 0.0% | Rules, compliance |
156
-
157
- ## Content Types (7 total)
158
-
159
- | Type | Count | % | Description |
160
- |------|-------|---|-------------|
161
- | **informational** | 2,142 | 87.5% | General information pages |
162
- | **contact** | 125 | 5.1% | Contact information |
163
- | **guide** | 94 | 3.8% | Long-form guides (>5000 chars, 3+ sections) |
164
- | **faq** | 35 | 1.4% | Frequently asked questions |
165
- | **procedure** | 28 | 1.1% | Step-by-step procedures |
166
- | **overview** | 14 | 0.6% | Overview/about pages |
167
- | **policy** | 10 | 0.4% | Policy documents |
168
-
169
- ## Quality Metrics
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
- dataset = load_dataset("BYU-Idaho/Web-Content")['train']
189
- print(f"Total pages: {len(dataset)}") # 2,448
 
 
 
 
 
 
190
  ```
191
 
192
- ### Filter by Category
193
 
194
  ```python
195
- # Get all Admissions pages
196
- admissions = dataset.filter(lambda x: x['category'] == 'Admissions')
 
 
 
 
197
 
198
- # Get all Academic pages
199
- academics = dataset.filter(lambda x: x['category'] == 'Academics')
 
200
  ```
201
 
202
- ### Filter by Quality Score
203
 
204
  ```python
205
- # Get only highest quality pages (95+)
206
- top_quality = dataset.filter(lambda x: x['quality_score'] >= 95)
207
-
208
- # Get pages suitable for general audiences (lower reading level)
209
- accessible = dataset.filter(lambda x: x['reading_level'] <= 12.0)
 
 
 
 
 
 
 
 
 
210
  ```
211
 
212
- ### Filter by Content Type
213
 
214
  ```python
215
- # Get all guides
216
- guides = dataset.filter(lambda x: x['content_type'] == 'guide')
 
 
 
 
 
 
 
 
217
 
218
- # Get all FAQs
219
- faqs = dataset.filter(lambda x: x['content_type'] == 'faq')
 
 
 
220
 
221
- # Get procedural content
222
- procedures = dataset.filter(lambda x: x['content_type'] == 'procedure')
223
  ```
224
 
225
- ### RAG Application with Filtering
226
 
227
  ```python
228
- from datasets import load_dataset
229
- from sentence_transformers import SentenceTransformer
230
 
231
- # Load high-quality pages only
232
- ds = load_dataset("BYU-Idaho/Web-Content")['train']
233
- high_quality = ds.filter(lambda x: x['quality_score'] >= 80)
234
 
235
- # Generate embeddings for retrieval
236
- model = SentenceTransformer('all-MiniLM-L6-v2')
237
- embeddings = model.encode(high_quality['content'])
 
 
 
238
 
239
- # Use for context retrieval in RAG
 
240
  ```
241
 
242
- ### Category-Specific RAG
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
243
 
244
- ```python
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
- # Route queries to appropriate category retriever
 
 
 
 
250
  ```
251
 
252
- ## Use Cases
 
 
 
 
 
253
 
254
- ### ✅ Retrieval-Augmented Generation (RAG)
255
- - **Category-aware routing** - Direct queries to relevant content
256
- - **Quality filtering** - Use only high-scoring pages for responses
257
- - **Content-type matching** - Return FAQs for questions, guides for how-to queries
 
 
 
 
 
258
 
259
- ### ✅ Semantic Search
260
- - **Multi-field search** - Search by category, content type, quality
261
- - **Reading level filtering** - Adjust complexity for audience
262
- - **Quality-ranked results** - Surface best content first
 
 
263
 
264
- ### ✅ Chatbot Training
265
- - **FAQ extraction** - 35 pre-labeled FAQ pages
266
- - **Procedure training** - 28 step-by-step procedures
267
- - **Category-based intents** - Map user queries to 14 categories
 
 
268
 
269
- ### Content Analysis
270
- - **Quality assessment** - Identify low-performing pages
271
- - **Category gaps** - Find underrepresented topics
272
- - **Reading level analysis** - Optimize content accessibility
273
 
274
- ### Fine-tuning
275
- - **High-quality training data** - Avg 91.5/100 score
276
- - **Diverse categories** - Balanced domain coverage
277
- - **Structured content** - Headers, lists, clear organization
 
 
 
 
278
 
279
  ## Version History
280
 
 
 
 
 
 
 
 
 
281
  **v3.0.0 (Enhanced)** - December 2025
282
- - Added category classification (14 categories)
283
- - Added content type detection (7 types)
284
- - Added quality scoring (0-100)
285
- - Added reading level calculation
286
- - Removed 82 faculty bio stubs
287
- - Removed 149 repetitive list pages
288
- - 2,448 ultra-high-quality pages
289
 
290
  **v2.0.0 (Production)** - December 2025
291
- - Initial production release
292
- - 2,666 high-quality pages
293
- - 34.9% filtering applied
294
 
295
  **v1.0.0 (Deduplicated)** - December 2025
296
- - 3,442 deduplicated pages
297
- - Basic quality filtering
298
 
299
  ## Advantages Over Previous Versions
300
 
301
- | Feature | v1.0 | v2.0 | v3.0 (Enhanced) |
302
- |---------|------|------|-----------------|
303
- | **Records** | 3,442 | 2,666 | **2,448** |
304
- | **Avg quality** | Unknown | Unknown | **91.5/100** |
305
- | **Categories** | | | **✅ 14 categories** |
306
- | **Content types** | ❌ | ❌ | **✅ 7 types** |
307
- | **Quality scores** | ❌ | ❌ | **✅ 0-100 scale** |
308
- | **Reading levels** | ❌ | ❌ | **✅ Flesch-Kincaid** |
309
- | **Faculty bios removed** | ❌ | ❌ | **✅ 82 removed** |
310
- | **List pages removed** | | ❌ | **✅ 149 removed** |
311
-
312
- ## Quality Guarantee
313
-
314
- Every page in this dataset:
315
- - ✅ Scores ≥50/100 on quality metrics
316
- - Contains ≥200 characters of content
317
- - Has both title and topic (H1)
318
- - Is unique (SHA256 deduplicated)
319
- - Is evergreen (no temporal content)
320
- - Is categorized and typed
321
- - ✅ Has calculated reading level
 
 
 
 
 
 
 
 
 
 
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-enhanced-2025,
331
- title={BYU-Idaho Web Content Dataset (Enhanced)},
332
  author={BYU-Idaho AI Team},
333
  year={2025},
334
- version={3.0.0},
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
- **Enterprise-Ready:** This dataset features advanced enrichment and filtering for production AI applications. With category classification, quality scoring, and reading levels, it's optimized for intelligent routing, quality filtering, and audience-appropriate responses.
 
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:c71864a83f8feee2fe049847b136dd8bdee96bb3fd475d48a07893bb2ed23b44
3
- size 3036330
 
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": "3.0.0",
4
- "description": "Ultra-high-quality BYU-Idaho web content with category classification and quality scores",
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": "byui_web_content_enhanced_v3",
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
  }