DipakBundheliya
commited on
Commit
•
c599f82
1
Parent(s):
e0bf5a5
Update Shipping-label-NER.py
Browse files- Shipping-label-NER.py +10 -13
Shipping-label-NER.py
CHANGED
@@ -3,8 +3,7 @@ import datasets
|
|
3 |
# coding=utf-8
|
4 |
# Copyright 2024 HuggingFace Datasets Authors.
|
5 |
# Lint as: python3
|
6 |
-
"""The Shipping label Dataset.
|
7 |
-
|
8 |
|
9 |
logger = datasets.logging.get_logger(__name__)
|
10 |
|
@@ -52,20 +51,18 @@ class shiping_label_ner(datasets.GeneratorBasedBuilder):
|
|
52 |
datasets.features.ClassLabel(
|
53 |
names=[
|
54 |
"O",
|
55 |
-
"B-GCNUM",
|
56 |
-
"I-GCNUM",
|
57 |
-
"B-BGNUM",
|
58 |
-
"I-BGNUM",
|
59 |
-
"B-DATE",
|
60 |
-
"I-DATE",
|
61 |
"B-ORG",
|
62 |
"I-ORG",
|
63 |
-
"B-
|
64 |
-
"I-
|
|
|
|
|
65 |
"B-NAME",
|
66 |
"I-NAME",
|
67 |
-
"B-
|
68 |
-
"I-
|
|
|
|
|
69 |
]
|
70 |
)
|
71 |
),
|
@@ -126,4 +123,4 @@ class shiping_label_ner(datasets.GeneratorBasedBuilder):
|
|
126 |
"id": str(sentence_counter),
|
127 |
"tokens": current_tokens,
|
128 |
"ner_tags": current_labels,
|
129 |
-
}
|
|
|
3 |
# coding=utf-8
|
4 |
# Copyright 2024 HuggingFace Datasets Authors.
|
5 |
# Lint as: python3
|
6 |
+
"""The Shipping label Dataset."""
|
|
|
7 |
|
8 |
logger = datasets.logging.get_logger(__name__)
|
9 |
|
|
|
51 |
datasets.features.ClassLabel(
|
52 |
names=[
|
53 |
"O",
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
"B-ORG",
|
55 |
"I-ORG",
|
56 |
+
"B-GCNUMBER",
|
57 |
+
"I-GCNUMBER",
|
58 |
+
"B-BGNUMBER",
|
59 |
+
"I-BGNUMBER",
|
60 |
"B-NAME",
|
61 |
"I-NAME",
|
62 |
+
"B-LOCATION",
|
63 |
+
"I-LOCATION",
|
64 |
+
"B-COUNTRY",
|
65 |
+
"I-COUNTRY",
|
66 |
]
|
67 |
)
|
68 |
),
|
|
|
123 |
"id": str(sentence_counter),
|
124 |
"tokens": current_tokens,
|
125 |
"ner_tags": current_labels,
|
126 |
+
}
|