Datasets:
Update files from the datasets library (from 1.3.0)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.3.0
- README.md +5 -0
- dataset_infos.json +1 -1
- dummy/thainer/1.3.0/dummy_data.zip +1 -1
- thainer.py +7 -6
README.md
CHANGED
@@ -46,6 +46,7 @@ task_ids:
|
|
46 |
- [Dataset Curators](#dataset-curators)
|
47 |
- [Licensing Information](#licensing-information)
|
48 |
- [Citation Information](#citation-information)
|
|
|
49 |
|
50 |
## Dataset Description
|
51 |
|
@@ -159,3 +160,7 @@ CC-BY 3.0
|
|
159 |
|
160 |
Work extended from:
|
161 |
[Tirasaroj, N. and Aroonmanakun, W. 2012. Thai NER using CRF model based on surface features. In Proceedings of SNLP-AOS 2011, 9-10 February, 2012, Bangkok, pages 176-180.](http://pioneer.chula.ac.th/~awirote/publications/)
|
|
|
|
|
|
|
|
|
|
46 |
- [Dataset Curators](#dataset-curators)
|
47 |
- [Licensing Information](#licensing-information)
|
48 |
- [Citation Information](#citation-information)
|
49 |
+
- [Contributions](#contributions)
|
50 |
|
51 |
## Dataset Description
|
52 |
|
|
|
160 |
|
161 |
Work extended from:
|
162 |
[Tirasaroj, N. and Aroonmanakun, W. 2012. Thai NER using CRF model based on surface features. In Proceedings of SNLP-AOS 2011, 9-10 February, 2012, Bangkok, pages 176-180.](http://pioneer.chula.ac.th/~awirote/publications/)
|
163 |
+
|
164 |
+
### Contributions
|
165 |
+
|
166 |
+
Thanks to [@cstorm125](https://github.com/cstorm125) for adding this dataset.
|
dataset_infos.json
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"thainer": {"description": "ThaiNER (v1.3) is a 6,456-sentence named entity recognition dataset created from expanding the 2,258-sentence\n[unnamed dataset](http://pioneer.chula.ac.th/~awirote/Data-Nutcha.zip) by\n[Tirasaroj and Aroonmanakun (2012)](http://pioneer.chula.ac.th/~awirote/publications/).\nIt is used to train NER taggers in [PyThaiNLP](https://github.com/PyThaiNLP/pythainlp).\nThe NER tags are annotated by [Tirasaroj and Aroonmanakun (2012)]((http://pioneer.chula.ac.th/~awirote/publications/))\nfor 2,258 sentences and the rest by [@wannaphong](https://github.com/wannaphong/).\nThe POS tags are done by [PyThaiNLP](https://github.com/PyThaiNLP/pythainlp)'s `perceptron` engine trained on `orchid_ud`.\n[@wannaphong](https://github.com/wannaphong/) is now the only maintainer of this dataset.\n", "citation": "@misc{Wannaphong Phatthiyaphaibun_2019,\n title={wannaphongcom/thai-ner: ThaiNER 1.3},\n url={https://zenodo.org/record/3550546},\n DOI={10.5281/ZENODO.3550546},\n abstractNote={Thai Named Entity Recognition},\n publisher={Zenodo},\n author={Wannaphong Phatthiyaphaibun},\n year={2019},\n month={Nov}\n}\n", "homepage": "https://github.com/wannaphong/thai-ner/", "license": "CC-BY 3.0", "features": {"id": {"dtype": "int32", "id": null, "_type": "Value"}, "tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "pos_tags": {"feature": {"num_classes": 14, "names": ["ADJ", "ADP", "ADV", "AUX", "CCONJ", "DET", "NOUN", "NUM", "PART", "PRON", "PROPN", "PUNCT", "SCONJ", "VERB"], "names_file": null, "id": null, "_type": "ClassLabel"}, "length": -1, "id": null, "_type": "Sequence"}, "ner_tags": {"feature": {"num_classes": 28, "names": ["B-DATE", "B-EMAIL", "B-LAW", "B-LEN", "B-LOCATION", "B-MONEY", "B-ORGANIZATION", "B-PERCENT", "B-PERSON", "B-PHONE", "B-TIME", "B-URL", "B-ZIP", "B-\u0e44\u0e21\u0e48\u0e22\u0e37\u0e19\u0e22\u0e31\u0e19", "I-DATE", "I-EMAIL", "I-LAW", "I-LEN", "I-LOCATION", "I-MONEY", "I-ORGANIZATION", "I-PERCENT", "I-PERSON", "I-PHONE", "I-TIME", "I-URL", "I-\u0e44\u0e21\u0e48\u0e22\u0e37\u0e19\u0e22\u0e31\u0e19", "O"], "names_file": null, "id": null, "_type": "ClassLabel"}, "length": -1, "id": null, "_type": "Sequence"}}, "post_processed": null, "supervised_keys": null, "builder_name": "thainer", "config_name": "thainer", "version": {"version_str": "1.3.0", "description": null, "major": 1, "minor": 3, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes":
|
|
|
1 |
+
{"thainer": {"description": "ThaiNER (v1.3) is a 6,456-sentence named entity recognition dataset created from expanding the 2,258-sentence\n[unnamed dataset](http://pioneer.chula.ac.th/~awirote/Data-Nutcha.zip) by\n[Tirasaroj and Aroonmanakun (2012)](http://pioneer.chula.ac.th/~awirote/publications/).\nIt is used to train NER taggers in [PyThaiNLP](https://github.com/PyThaiNLP/pythainlp).\nThe NER tags are annotated by [Tirasaroj and Aroonmanakun (2012)]((http://pioneer.chula.ac.th/~awirote/publications/))\nfor 2,258 sentences and the rest by [@wannaphong](https://github.com/wannaphong/).\nThe POS tags are done by [PyThaiNLP](https://github.com/PyThaiNLP/pythainlp)'s `perceptron` engine trained on `orchid_ud`.\n[@wannaphong](https://github.com/wannaphong/) is now the only maintainer of this dataset.\n", "citation": "@misc{Wannaphong Phatthiyaphaibun_2019,\n title={wannaphongcom/thai-ner: ThaiNER 1.3},\n url={https://zenodo.org/record/3550546},\n DOI={10.5281/ZENODO.3550546},\n abstractNote={Thai Named Entity Recognition},\n publisher={Zenodo},\n author={Wannaphong Phatthiyaphaibun},\n year={2019},\n month={Nov}\n}\n", "homepage": "https://github.com/wannaphong/thai-ner/", "license": "CC-BY 3.0", "features": {"id": {"dtype": "int32", "id": null, "_type": "Value"}, "tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "pos_tags": {"feature": {"num_classes": 14, "names": ["ADJ", "ADP", "ADV", "AUX", "CCONJ", "DET", "NOUN", "NUM", "PART", "PRON", "PROPN", "PUNCT", "SCONJ", "VERB"], "names_file": null, "id": null, "_type": "ClassLabel"}, "length": -1, "id": null, "_type": "Sequence"}, "ner_tags": {"feature": {"num_classes": 28, "names": ["B-DATE", "B-EMAIL", "B-LAW", "B-LEN", "B-LOCATION", "B-MONEY", "B-ORGANIZATION", "B-PERCENT", "B-PERSON", "B-PHONE", "B-TIME", "B-URL", "B-ZIP", "B-\u0e44\u0e21\u0e48\u0e22\u0e37\u0e19\u0e22\u0e31\u0e19", "I-DATE", "I-EMAIL", "I-LAW", "I-LEN", "I-LOCATION", "I-MONEY", "I-ORGANIZATION", "I-PERCENT", "I-PERSON", "I-PHONE", "I-TIME", "I-URL", "I-\u0e44\u0e21\u0e48\u0e22\u0e37\u0e19\u0e22\u0e31\u0e19", "O"], "names_file": null, "id": null, "_type": "ClassLabel"}, "length": -1, "id": null, "_type": "Sequence"}}, "post_processed": null, "supervised_keys": null, "builder_name": "thainer", "config_name": "thainer", "version": {"version_str": "1.3.0", "description": null, "major": 1, "minor": 3, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 8117902, "num_examples": 6348, "dataset_name": "thainer"}}, "download_checksums": {"https://github.com/wannaphong/thai-ner/raw/master/model/1.3/data-pos.conll": {"num_bytes": 5456461, "checksum": "be9f897b409554f06501c3a26159115fce5140d5654c634276b1a40b8c4dbabd"}}, "download_size": 5456461, "post_processing_size": null, "dataset_size": 8117902, "size_in_bytes": 13574363}}
|
dummy/thainer/1.3.0/dummy_data.zip
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 1104
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c2abd4a278c6fcb96bf606e7085dcc13168ff4359a355d4f7a289e925e68e175
|
3 |
size 1104
|
thainer.py
CHANGED
@@ -156,9 +156,10 @@ class Thainer(datasets.GeneratorBasedBuilder):
|
|
156 |
pos_tags.append(splits[1])
|
157 |
ner_tags.append(ner_tag)
|
158 |
# last example
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
|
|
|
156 |
pos_tags.append(splits[1])
|
157 |
ner_tags.append(ner_tag)
|
158 |
# last example
|
159 |
+
if tokens:
|
160 |
+
yield guid, {
|
161 |
+
"id": str(guid),
|
162 |
+
"tokens": tokens,
|
163 |
+
"pos_tags": pos_tags,
|
164 |
+
"ner_tags": ner_tags,
|
165 |
+
}
|