hamzas commited on
Commit
f7e5b0a
·
verified ·
1 Parent(s): e3991db

Upload folder using huggingface_hub

Browse files
Files changed (5) hide show
  1. README.md +77 -0
  2. data/test.jsonl +0 -0
  3. data/train.jsonl +0 -0
  4. data/validation.jsonl +0 -0
  5. dataset_info.json +22 -0
README.md ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ paper: arxiv:2109.03794
3
+ size_categories:
4
+ - n<1K
5
+ task_categories:
6
+ - token-classification
7
+ language:
8
+ - en
9
+ tags:
10
+ - pipeline-numbers
11
+ - ner
12
+ - p-and-id
13
+ ---
14
+
15
+ # Digitize-PID: Pipeline numbers (NER)
16
+
17
+ **Note**: *I am not the author of this dataset*
18
+
19
+ Named Entity Recognition dataset for extracting pipeline numbers from full text of P&ID
20
+ (Piping and Instrumentation Diagram) documents.
21
+
22
+ ## Dataset Details
23
+
24
+ ### Dataset Description
25
+
26
+ Pipeline numbers are structured identifiers in engineering documents:
27
+ - Example Format: `A-123-BC` (3-5 segments with a separator such as `-`, ` `, or `_`)
28
+ - Use case: Automated extraction from P&ID document text
29
+ - Domain: Process and piping industry
30
+
31
+ ### Data Fields
32
+
33
+ - `id`: Unique example identifier
34
+ - `tokens`: List of tokenized words/punctuation
35
+ - `labels`: BIO tags for each token
36
+ - `pipeline_numbers`: Ground truth pipeline numbers
37
+ - `full_text`: Original text
38
+
39
+ ### Label Schema
40
+
41
+ | Label | Meaning |
42
+ |-------|---------|
43
+ | `B-PIPE` | Beginning of pipeline number |
44
+ | `I-PIPE` | Inside pipeline number |
45
+ | `O` | Outside (not pipeline number) |
46
+
47
+ ### Splits
48
+
49
+ Data was randomly split.
50
+
51
+ | Split | Examples |
52
+ |-------|----------|
53
+ | train | 400 |
54
+ | validation | 50 |
55
+ | test | 50 |
56
+
57
+ ### Data Creation
58
+
59
+ - **Source:** Digitize-PID
60
+ - **Annotation:** Automatic BIO tagging with character-level alignment
61
+
62
+ ## Usage
63
+
64
+ ### With Hugging Face Datasets
65
+
66
+ ```python
67
+ from datasets import load_dataset
68
+
69
+ dataset = load_dataset("hamzas/digitize-pid-ner")
70
+
71
+ print(dataset)
72
+
73
+ # Access example
74
+ example = dataset['train'][0]
75
+ print(example['tokens'])
76
+ print(example['labels'])
77
+ ```
data/test.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
data/train.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
data/validation.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
dataset_info.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "digitize-pid-pipeline-numbers",
3
+ "version": "1.0.0",
4
+ "description": "Pipeline number extraction from P&ID documents",
5
+ "splits": {
6
+ "train": 400,
7
+ "validation": 50,
8
+ "test": 50
9
+ },
10
+ "features": {
11
+ "id": "string",
12
+ "tokens": "list[string]",
13
+ "labels": "list[string]",
14
+ "pipeline_numbers": "list[string]",
15
+ "full_text": "string"
16
+ },
17
+ "label_schema": {
18
+ "B-PIPE": "Beginning of pipeline number",
19
+ "I-PIPE": "Inside pipeline number",
20
+ "O": "Outside pipeline number"
21
+ }
22
+ }