Datasets:
Update files from the datasets library (from 1.2.1)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.2.1
- README.md +1 -1
- dataset_infos.json +1 -1
- dummy/thainer/1.3.0/dummy_data.zip +2 -2
- thainer.py +2 -2
README.md
CHANGED
@@ -19,7 +19,7 @@ task_categories:
|
|
19 |
- structure-prediction
|
20 |
task_ids:
|
21 |
- named-entity-recognition
|
22 |
-
-
|
23 |
---
|
24 |
|
25 |
# Dataset Card for `thainer`
|
|
|
19 |
- structure-prediction
|
20 |
task_ids:
|
21 |
- named-entity-recognition
|
22 |
+
- part-of-speech-tagging
|
23 |
---
|
24 |
|
25 |
# Dataset Card for `thainer`
|
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": 8117918, "num_examples": 6349, "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": 8117918, "size_in_bytes": 13574379}}
|
|
|
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": 8117918, "num_examples": 6349, "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": 8117918, "size_in_bytes": 13574379}}
|
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
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e407a8297dce6d338bdcfdb9cd8710a8e0d007d851574c6e4c4980f68fd7cfae
|
3 |
+
size 1104
|
thainer.py
CHANGED
@@ -151,10 +151,10 @@ class Thainer(datasets.GeneratorBasedBuilder):
|
|
151 |
# thainer tokens are tab separated
|
152 |
splits = line.split("\t")
|
153 |
# replace junk ner tags
|
154 |
-
ner_tag = splits[2] if splits[2] in self._NER_TAGS else "O"
|
155 |
tokens.append(splits[0])
|
156 |
pos_tags.append(splits[1])
|
157 |
-
ner_tags.append(ner_tag
|
158 |
# last example
|
159 |
yield guid, {
|
160 |
"id": str(guid),
|
|
|
151 |
# thainer tokens are tab separated
|
152 |
splits = line.split("\t")
|
153 |
# replace junk ner tags
|
154 |
+
ner_tag = splits[2].strip() if splits[2].strip() in self._NER_TAGS else "O"
|
155 |
tokens.append(splits[0])
|
156 |
pos_tags.append(splits[1])
|
157 |
+
ner_tags.append(ner_tag)
|
158 |
# last example
|
159 |
yield guid, {
|
160 |
"id": str(guid),
|