Complete dataset card with domains, entity types, CLS labels, usage, citation
Browse files
README.md
CHANGED
|
@@ -4,6 +4,7 @@ language:
|
|
| 4 |
license: cc-by-sa-4.0
|
| 5 |
task_categories:
|
| 6 |
- token-classification
|
|
|
|
| 7 |
task_ids:
|
| 8 |
- named-entity-recognition
|
| 9 |
- part-of-speech
|
|
@@ -12,23 +13,28 @@ tags:
|
|
| 12 |
- ner
|
| 13 |
- pos
|
| 14 |
- dependency-parsing
|
|
|
|
| 15 |
- multi-task
|
| 16 |
- conllu
|
|
|
|
|
|
|
| 17 |
size_categories:
|
| 18 |
- 100K<n<1M
|
| 19 |
---
|
| 20 |
|
| 21 |
# kniv-corpus-en
|
| 22 |
|
| 23 |
-
Multi-
|
| 24 |
-
|
| 25 |
-
Built for training [uniko](https://github.com/rustic-ai/uniko) NLP models.
|
| 26 |
|
| 27 |
## Dataset Details
|
| 28 |
|
| 29 |
-
|
| 30 |
-
-
|
| 31 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
|
| 33 |
### Splits
|
| 34 |
|
|
@@ -40,26 +46,83 @@ Built for training [uniko](https://github.com/rustic-ai/uniko) NLP models.
|
|
| 40 |
|
| 41 |
### Domains
|
| 42 |
|
| 43 |
-
| Domain |
|
| 44 |
-
|--------|
|
| 45 |
-
|
|
| 46 |
-
|
|
| 47 |
-
|
|
| 48 |
-
|
|
| 49 |
-
|
|
| 50 |
-
|
|
| 51 |
-
|
| 52 |
-
### Annotation
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 63 |
|
| 64 |
## Usage
|
| 65 |
|
|
@@ -74,9 +137,16 @@ with open(path) as f:
|
|
| 74 |
sentences = conllu.parse(f.read())
|
| 75 |
|
| 76 |
for sent in sentences[:3]:
|
| 77 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 78 |
for token in sent:
|
| 79 |
-
|
|
|
|
|
|
|
|
|
|
| 80 |
```
|
| 81 |
|
| 82 |
## Source
|
|
@@ -84,6 +154,18 @@ for sent in sentences[:3]:
|
|
| 84 |
- **Training code:** [rustic-ai/kniv-nlp-models](https://github.com/rustic-ai/kniv-nlp-models)
|
| 85 |
- **Trained models:** [dragonscale-ai on HuggingFace](https://huggingface.co/dragonscale-ai)
|
| 86 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 87 |
## License
|
| 88 |
|
| 89 |
-
CC BY-SA 4.0.
|
|
|
|
| 4 |
license: cc-by-sa-4.0
|
| 5 |
task_categories:
|
| 6 |
- token-classification
|
| 7 |
+
- text-classification
|
| 8 |
task_ids:
|
| 9 |
- named-entity-recognition
|
| 10 |
- part-of-speech
|
|
|
|
| 13 |
- ner
|
| 14 |
- pos
|
| 15 |
- dependency-parsing
|
| 16 |
+
- dialog-act
|
| 17 |
- multi-task
|
| 18 |
- conllu
|
| 19 |
+
- spacy
|
| 20 |
+
- gpt-validated
|
| 21 |
size_categories:
|
| 22 |
- 100K<n<1M
|
| 23 |
---
|
| 24 |
|
| 25 |
# kniv-corpus-en
|
| 26 |
|
| 27 |
+
Multi-domain NLP corpus for English with annotations for NER, POS tagging, dependency parsing, and sentence classification (dialog act). Built for training [kniv](https://github.com/rustic-ai/kniv-nlp-models) multi-task NLP models for the [uniko](https://github.com/rustic-ai/uniko) cognitive memory system.
|
|
|
|
|
|
|
| 28 |
|
| 29 |
## Dataset Details
|
| 30 |
|
| 31 |
+
| | |
|
| 32 |
+
|---|---|
|
| 33 |
+
| **Format** | CoNLL-U with NER and CLS annotations in metadata/MISC fields |
|
| 34 |
+
| **Sentences** | 785,722 |
|
| 35 |
+
| **Annotation** | spaCy `en_core_web_trf` + GPT-5.4 validation corrections |
|
| 36 |
+
| **CLS labels** | GPT-5.4-nano (9 dialog act types) |
|
| 37 |
+
| **License** | CC BY-SA 4.0 |
|
| 38 |
|
| 39 |
### Splits
|
| 40 |
|
|
|
|
| 46 |
|
| 47 |
### Domains
|
| 48 |
|
| 49 |
+
| Domain | Sentences | Sources | License |
|
| 50 |
+
|--------|-----------|---------|---------|
|
| 51 |
+
| **Conversation** | 218,343 | Taskmaster 1/2/3, OASST1, MultiWOZ 2.2, Glaive Function Calling, Discord Dialogues | CC BY-4.0 / Apache 2.0 / MIT |
|
| 52 |
+
| **Business** | 197,891 | SEC EDGAR 10-K, Enron emails, OpenStax textbooks, Odoo docs, Wikipedia, CUAD contracts, OpenAlex abstracts | Public domain / CC BY-4.0 / CC BY-SA 3.0 / ODC-BY |
|
| 53 |
+
| **Technical** | 193,032 | Wikipedia (CS/engineering), Python documentation | CC BY-SA 3.0 / PSF License |
|
| 54 |
+
| **Encyclopedic** | 66,490 | Wikipedia (science, history, geography, arts) | CC BY-SA 3.0 |
|
| 55 |
+
| **News** | 58,026 | Wikinews, Wikipedia (journalism, politics) | CC BY 2.5 / CC BY-SA 3.0 |
|
| 56 |
+
| **Narrative** | 51,940 | Project Gutenberg (classic fiction) | Public domain |
|
| 57 |
+
|
| 58 |
+
### Annotation Pipeline
|
| 59 |
+
|
| 60 |
+
1. **Collect** — raw text from open sources (APIs, HuggingFace datasets, git repos)
|
| 61 |
+
2. **Preprocess** — sentence splitting, cleaning, quality filtering, deduplication
|
| 62 |
+
3. **Annotate** — spaCy `en_core_web_trf` produces POS, NER, dependency parse per sentence
|
| 63 |
+
4. **Validate** — GPT-5.4-nano checks annotations, returns corrections for POS/NER/dep errors
|
| 64 |
+
5. **Classify** — GPT-5.4-nano assigns dialog act labels (9 types)
|
| 65 |
+
6. **Export** — corrections applied, CLS labels embedded, split into train/dev/test
|
| 66 |
+
|
| 67 |
+
### NER Entity Types (18)
|
| 68 |
+
|
| 69 |
+
BIO-tagged in the MISC column:
|
| 70 |
+
|
| 71 |
+
| Type | Description | Example |
|
| 72 |
+
|------|-------------|---------|
|
| 73 |
+
| PERSON | People | *Caroline*, *Dr. Smith* |
|
| 74 |
+
| ORG | Organizations | *Apple*, *United Nations* |
|
| 75 |
+
| GPE | Geopolitical entities | *France*, *New York* |
|
| 76 |
+
| LOC | Locations | *Mount Everest*, *Pacific Ocean* |
|
| 77 |
+
| DATE | Dates and periods | *January 2024*, *last quarter* |
|
| 78 |
+
| TIME | Times | *3pm*, *two hours* |
|
| 79 |
+
| MONEY | Monetary values | *$394B*, *50 million euros* |
|
| 80 |
+
| PERCENT | Percentages | *15.3%*, *a third* |
|
| 81 |
+
| QUANTITY | Measurements | *100 kilometers*, *5 pounds* |
|
| 82 |
+
| ORDINAL | Ordinal numbers | *first*, *3rd* |
|
| 83 |
+
| CARDINAL | Cardinal numbers | *three*, *42* |
|
| 84 |
+
| NORP | Nationalities/groups | *British*, *Republican* |
|
| 85 |
+
| FAC | Facilities | *the White House*, *Highway 101* |
|
| 86 |
+
| PRODUCT | Products | *iPhone*, *Boeing 747* |
|
| 87 |
+
| EVENT | Events | *World War II*, *Olympics* |
|
| 88 |
+
| WORK_OF_ART | Works of art | *Hamlet*, *The Starry Night* |
|
| 89 |
+
| LAW | Laws | *the First Amendment* |
|
| 90 |
+
| LANGUAGE | Languages | *English*, *Mandarin* |
|
| 91 |
+
|
| 92 |
+
### CLS Dialog Act Labels (9)
|
| 93 |
+
|
| 94 |
+
Embedded as `# cls = <label>` comment in each sentence:
|
| 95 |
+
|
| 96 |
+
| Label | Action in uniko | Example |
|
| 97 |
+
|-------|----------------|---------|
|
| 98 |
+
| `inform` | Extract observation | *"Revenue grew 15% last quarter"* |
|
| 99 |
+
| `correction` | Flag knowledge for update | *"No, it was actually Tuesday"* |
|
| 100 |
+
| `agreement` | Reinforce observation | *"Yes, exactly"* |
|
| 101 |
+
| `question` | Record knowledge gap | *"Where is the report?"* |
|
| 102 |
+
| `plan_commit` | Link to Goal/Task | *"I'll send it tomorrow"* |
|
| 103 |
+
| `request` | Create action node | *"Show me the data"* |
|
| 104 |
+
| `feedback` | Skip extraction | *"OK"*, *"Got it"* |
|
| 105 |
+
| `social` | Skip extraction | *"Hi"*, *"Thanks"* |
|
| 106 |
+
| `filler` | Skip entirely | *"Um"*, *"Well"* |
|
| 107 |
+
|
| 108 |
+
### CoNLL-U Format
|
| 109 |
+
|
| 110 |
+
Each sentence has metadata comments followed by token rows:
|
| 111 |
+
|
| 112 |
+
```
|
| 113 |
+
# sent_id = business-000042
|
| 114 |
+
# text = Apple reported $394B revenue in Q4.
|
| 115 |
+
# cls = inform
|
| 116 |
+
1 Apple apple PROPN NNP _ 2 nsubj _ NER=B-ORG
|
| 117 |
+
2 reported report VERB VBD _ 0 root _ _
|
| 118 |
+
3 $394B $394b NUM CD _ 2 obj _ NER=B-MONEY
|
| 119 |
+
4 revenue revenue NOUN NN _ 3 appos _ _
|
| 120 |
+
5 in in ADP IN _ 6 case _ _
|
| 121 |
+
6 Q4 q4 PROPN NNP _ 2 obl _ NER=B-DATE
|
| 122 |
+
7 . . PUNCT . _ 2 punct _ _
|
| 123 |
+
```
|
| 124 |
+
|
| 125 |
+
Columns: ID, FORM, LEMMA, UPOS, XPOS, FEATS, HEAD, DEPREL, DEPS, MISC
|
| 126 |
|
| 127 |
## Usage
|
| 128 |
|
|
|
|
| 137 |
sentences = conllu.parse(f.read())
|
| 138 |
|
| 139 |
for sent in sentences[:3]:
|
| 140 |
+
# Metadata
|
| 141 |
+
print(f"Text: {sent.metadata['text']}")
|
| 142 |
+
print(f"CLS: {sent.metadata.get('cls', 'N/A')}")
|
| 143 |
+
|
| 144 |
+
# Tokens
|
| 145 |
for token in sent:
|
| 146 |
+
ner = token.get("misc", {})
|
| 147 |
+
ner_tag = ner.get("NER", "O") if isinstance(ner, dict) else "O"
|
| 148 |
+
print(f" {token['form']:20s} POS={token['upos']:6s} DEP={token['deprel']:12s} NER={ner_tag}")
|
| 149 |
+
print()
|
| 150 |
```
|
| 151 |
|
| 152 |
## Source
|
|
|
|
| 154 |
- **Training code:** [rustic-ai/kniv-nlp-models](https://github.com/rustic-ai/kniv-nlp-models)
|
| 155 |
- **Trained models:** [dragonscale-ai on HuggingFace](https://huggingface.co/dragonscale-ai)
|
| 156 |
|
| 157 |
+
## Citation
|
| 158 |
+
|
| 159 |
+
```bibtex
|
| 160 |
+
@misc{kniv-corpus-en,
|
| 161 |
+
title={kniv-corpus-en: Multi-domain NLP Corpus for English},
|
| 162 |
+
author={Dragonscale AI},
|
| 163 |
+
year={2026},
|
| 164 |
+
publisher={Hugging Face},
|
| 165 |
+
url={https://huggingface.co/datasets/dragonscale-ai/kniv-corpus-en}
|
| 166 |
+
}
|
| 167 |
+
```
|
| 168 |
+
|
| 169 |
## License
|
| 170 |
|
| 171 |
+
CC BY-SA 4.0. Individual domain source licenses are listed in the domains table above and in the [source repository](https://github.com/rustic-ai/kniv-nlp-models/tree/main/corpus/domains).
|