Datasets:
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
task_categories:
|
| 4 |
+
- text-generation
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
tags:
|
| 8 |
+
- domain-specific
|
| 9 |
+
- filtered-corpus
|
| 10 |
+
- ontology-guided
|
| 11 |
+
size_categories:
|
| 12 |
+
- unknown
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
# quantum-physics-corpus
|
| 16 |
+
|
| 17 |
+
## Dataset Description
|
| 18 |
+
|
| 19 |
+
This is a domain-specific corpus created using ontology-guided filtering from FineWeb-Edu.
|
| 20 |
+
|
| 21 |
+
### Dataset Creation
|
| 22 |
+
|
| 23 |
+
- **Source:** HuggingFaceFW/fineweb-edu
|
| 24 |
+
- **Filtering Method:** Semantic similarity to subdomain centroids (embedding-based)
|
| 25 |
+
- **Pipeline:** Ontology-Guided Domain Corpus Builder
|
| 26 |
+
|
| 27 |
+
### Dataset Structure
|
| 28 |
+
|
| 29 |
+
Each chunk contains:
|
| 30 |
+
- `text`: The text content (256-512 tokens)
|
| 31 |
+
- `subdomain_id`: Assigned subdomain
|
| 32 |
+
- `similarity_score`: Cosine similarity to subdomain centroid
|
| 33 |
+
- `token_count`: Number of tokens
|
| 34 |
+
- `source_dataset`: Original dataset name
|
| 35 |
+
- `source_id`: Original document ID
|
| 36 |
+
- `chunk_index`: Position within source document
|
| 37 |
+
|
| 38 |
+
### Usage
|
| 39 |
+
|
| 40 |
+
```python
|
| 41 |
+
from datasets import load_dataset
|
| 42 |
+
|
| 43 |
+
dataset = load_dataset("konsman/quantum-physics-corpus")
|
| 44 |
+
|
| 45 |
+
# Access filtered chunks
|
| 46 |
+
for chunk in dataset['train']:
|
| 47 |
+
print(chunk['text'])
|
| 48 |
+
print(chunk['subdomain_id'])
|
| 49 |
+
print(chunk['similarity_score'])
|
| 50 |
+
```
|
| 51 |
+
|
| 52 |
+
### License
|
| 53 |
+
|
| 54 |
+
MIT License
|
| 55 |
+
|
| 56 |
+
### Citation
|
| 57 |
+
|
| 58 |
+
Generated using the Ontology-Guided Domain Corpus Builder pipeline.
|