Milad96 commited on
Commit
bf6f65d
·
verified ·
1 Parent(s): 8f800ea

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +31 -165
README.md CHANGED
@@ -3,7 +3,6 @@ license: apache-2.0
3
  task_categories:
4
  - text-classification
5
  - token-classification
6
- - text-generation
7
  language:
8
  - en
9
  tags:
@@ -12,196 +11,63 @@ tags:
12
  - kluyveromyces-marxianus
13
  - biobert
14
  - functional-genomics
15
- - pangenome
16
  - yeast
17
- - biomistral
18
  size_categories:
19
  - 10K<n<100K
20
  ---
21
 
22
- # 🧬 Kluyveromyces marxianus - BioBERT-Optimized Genomics Dataset
23
-
24
- <div align="center">
25
- <img src="https://img.shields.io/badge/BioBERT-Optimized-green" alt="BioBERT"/>
26
- <img src="https://img.shields.io/badge/Chunks-2-brightgreen" alt="Chunks"/>
27
- <img src="https://img.shields.io/badge/Quality-0.855-yellow" alt="Quality"/>
28
- <img src="https://img.shields.io/badge/512_tokens-Ready-blue" alt="512 tokens"/>
29
- </div>
30
-
31
- ## 📋 Overview
32
-
33
- **2 semantically-optimized chunks** for BioBERT fine-tuning, processed with **BiOMistral-7B** quantum chunking engine.
34
-
35
- ### Key Features
36
-
37
- ✅ **Deep Semantic Coherence** (avg: 1.000)
38
- ✅ **Optimal Token Size** (~512 tokens per chunk)
39
- ✅ **Quality Filtering** (2 high-quality chunks)
40
- ✅ **Entity Extraction** (genes, proteins, pathways, conditions)
41
- ✅ **BioBERT-Ready** (1 chunks ≤512 tokens)
42
-
43
- ## 🎯 Research Context
44
-
45
- **PhD Thesis**: *Functional Genomics of Robust Linear Yeasts (Kluyveromyces marxianus) using BioBERT and Pangenome Methodology for Identifying Key Survival Genes in Severe Gut Conditions*
46
-
47
- ### Applications
48
-
49
- - 🧬 Gene survival mechanism discovery
50
- - 🔬 Metabolic pathway analysis
51
- - 🦠 Stress response characterization
52
- - 📊 Pangenome comparative genomics
53
- - 🤖 AI-driven gene function prediction
54
-
55
- ## 📊 Dataset Statistics
56
-
57
- | Metric | Value |
58
- |--------|-------|
59
- | **Total Chunks** | 2 |
60
- | **High-Quality (≥0.7)** | 2 (100.0%) |
61
- | **BioBERT-Ready** | 1 (50.0%) |
62
- | **Avg Coherence** | 1.0000 |
63
- | **Avg Density** | 0.7108 |
64
- | **Avg Quality** | 0.8554 |
65
- | **Processing Date** | 2025-11-01T08:35:37.784389 |
66
-
67
- ## 🧬 Data Structure
68
-
69
- ```json
70
- {
71
- "chunk_id": "train_0_0",
72
- "global_id": 0,
73
- "text": "Optimized text content...",
74
- "token_count": 487,
75
- "semantic_coherence": 0.8234,
76
- "information_density": 0.7156,
77
- "quality_score": 0.7695,
78
- "entities": {
79
- "genes": ["ABC1", "XYZ2"],
80
- "proteins": ["hexokinase"],
81
- "pathways": ["glycolysis"],
82
- "organisms": ["marxianus"],
83
- "conditions": ["acid", "gut"]
84
- },
85
- "biobert_ready": true
86
- }
87
- ```
88
 
89
- ## 📁 Files
90
 
91
- - `chunks_complete.json` - All chunks with metadata (2 chunks)
92
- - `chunks_high_quality.json` - Premium subset (2 chunks)
93
- - `chunks.jsonl` - Streaming format
94
- - `statistics.json` - Processing statistics
95
- - `analysis_dashboard.png` - Visual analytics
96
- - `interactive_dashboard.html` - Interactive Plotly dashboard
97
- - `entities_wordcloud.png` - Entity visualization
98
 
99
- ## 🚀 Quick Start
100
 
101
- ### Load Dataset
102
 
103
- ```python
104
- import json
 
 
105
 
106
- # High-quality subset
107
- with open('chunks_high_quality.json', 'r') as f:
108
- chunks = json.load(f)
109
 
110
- print(f"Loaded {len(chunks):,} high-quality chunks")
111
- ```
 
 
112
 
113
- ### BioBERT Fine-tuning
114
 
115
  ```python
116
- from transformers import BertTokenizer, BertForSequenceClassification
117
-
118
- model = BertForSequenceClassification.from_pretrained(
119
- "dmis-lab/biobert-large-cased-v1.1",
120
- num_labels=YOUR_CLASSES
121
- )
122
-
123
- tokenizer = BertTokenizer.from_pretrained(
124
- "dmis-lab/biobert-large-cased-v1.1"
125
- )
126
-
127
- # Chunks are already 512-token optimized!
128
- for chunk in chunks:
129
- encoding = tokenizer(
130
- chunk['text'],
131
- truncation=True,
132
- max_length=512,
133
- padding='max_length',
134
- return_tensors='pt'
135
- )
136
- # Train your model...
137
- ```
138
 
139
- ### Filter by Quality
 
 
140
 
141
- ```python
142
- # Get excellent chunks (≥0.8)
143
- excellent = [c for c in chunks if c['quality_score'] >= 0.8]
144
-
145
- # Get gut-stress related chunks
146
- gut_chunks = [
147
- c for c in chunks
148
- if any(cond in c['entities']['conditions']
149
- for cond in ['gut', 'acid', 'bile'])
150
- ]
151
  ```
152
 
153
- ## 📈 Quality Metrics
154
-
155
- **Semantic Coherence** (0-1): Thematic consistency using BiOMistral embeddings
156
- **Information Density** (0-1): Vocabulary diversity (unique/total words)
157
- **Quality Score** (0-1): Combined metric `(coherence + density) / 2`
158
-
159
- ### Quality Tiers
160
-
161
- - **Excellent** (≥0.8): Highly focused, rich content
162
- - **Good** (0.7-0.8): Strong coherence and diversity
163
- - **Acceptable** (0.5-0.7): Moderate quality
164
- - **Low** (<0.5): Basic content
165
-
166
- ## 🔬 Processing Pipeline
167
-
168
- 1. **BiOMistral-7B Loading** - 4-bit/FP16 quantization
169
- 2. **Semantic Analysis** - Deep understanding via embeddings
170
- 3. **Intelligent Chunking** - Boundary detection at natural breaks
171
- 4. **Entity Extraction** - Automatic identification
172
- 5. **Quality Scoring** - Multi-metric assessment
173
- 6. **Visualization** - Interactive and static analytics
174
-
175
- ## 🎓 Citation
176
 
177
  ```bibtex
178
  @dataset{kmx_chunks_2024,
179
- title = {Kluyveromyces marxianus BioBERT-Optimized Chunks},
180
- author = {Quantum Chunking System},
181
  year = {2024},
182
  publisher = {HuggingFace},
183
  url = {https://huggingface.co/datasets/Milad96/Kluyveromyces-marxianus-chunks}
184
  }
185
  ```
186
 
187
- ## 📜 License
188
-
189
- Apache 2.0 - Free for commercial and research use
190
-
191
- ## 🤝 Source
192
-
193
- **Original Dataset**: [Milad96/Kluyveromyces-marxianus](https://huggingface.co/datasets/Milad96/Kluyveromyces-marxianus)
194
-
195
- **Processing**: BiOMistral-7B Quantum Chunking System
196
-
197
- ## 🔗 Resources
198
-
199
- - [BioBERT](https://huggingface.co/dmis-lab/biobert-large-cased-v1.1)
200
- - [BiOMistral-7B](https://huggingface.co/BioMistral/BioMistral-7B)
201
- - [Transformers](https://github.com/huggingface/transformers)
202
-
203
- ---
204
 
205
- **Generated**: 2025-11-01 08:35:58
206
- **System**: BiOMistral Quantum Chunking v1.0
207
- **Target**: BioBERT-Large Fine-tuning
 
3
  task_categories:
4
  - text-classification
5
  - token-classification
 
6
  language:
7
  - en
8
  tags:
 
11
  - kluyveromyces-marxianus
12
  - biobert
13
  - functional-genomics
 
14
  - yeast
 
15
  size_categories:
16
  - 10K<n<100K
17
  ---
18
 
19
+ # 🧬 Kluyveromyces marxianus - BioBERT-Optimized Chunks
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
 
21
+ **PhD Research Dataset**: Functional Genomics of Robust Linear Yeasts
22
 
23
+ ## Overview
 
 
 
 
 
 
24
 
25
+ Semantically-optimized 512-token chunks for BioBERT fine-tuning, processed with BiOMistral-7B.
26
 
27
+ ## Dataset Info
28
 
29
+ - **Processing Date**: 2025-11-01
30
+ - **Target Model**: BioBERT-Large v1.1
31
+ - **Chunk Size**: 512 tokens (optimal)
32
+ - **Source**: [Milad96/Kluyveromyces-marxianus](https://huggingface.co/datasets/Milad96/Kluyveromyces-marxianus)
33
 
34
+ ## Features
 
 
35
 
36
+ - Deep semantic coherence analysis
37
+ - Automatic genomic entity extraction
38
+ - Quality scoring and filtering
39
+ - BioBERT-ready format
40
 
41
+ ## Usage
42
 
43
  ```python
44
+ from datasets import load_dataset
45
+ import json
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
 
47
+ # Load high-quality chunks
48
+ with open('chunks_high_quality.json', 'r') as f:
49
+ chunks = json.load(f)
50
 
51
+ # Each chunk has:
52
+ # - text: optimized content
53
+ # - token_count: ~512
54
+ # - semantic_coherence: 0-1
55
+ # - quality_score: 0-1
56
+ # - entities: {genes, proteins, pathways}
 
 
 
 
57
  ```
58
 
59
+ ## Citation
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
60
 
61
  ```bibtex
62
  @dataset{kmx_chunks_2024,
63
+ author = {Milad96},
64
+ title = {Kluyveromyces marxianus BioBERT Chunks},
65
  year = {2024},
66
  publisher = {HuggingFace},
67
  url = {https://huggingface.co/datasets/Milad96/Kluyveromyces-marxianus-chunks}
68
  }
69
  ```
70
 
71
+ ## License
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
72
 
73
+ Apache 2.0