parquet-converter commited on
Commit
ca5ed52
·
1 Parent(s): 07b14d1

Update parquet files

Browse files
.gitattributes DELETED
@@ -1,51 +0,0 @@
1
- *.7z filter=lfs diff=lfs merge=lfs -text
2
- *.arrow filter=lfs diff=lfs merge=lfs -text
3
- *.bin filter=lfs diff=lfs merge=lfs -text
4
- *.bz2 filter=lfs diff=lfs merge=lfs -text
5
- *.ftz filter=lfs diff=lfs merge=lfs -text
6
- *.gz filter=lfs diff=lfs merge=lfs -text
7
- *.h5 filter=lfs diff=lfs merge=lfs -text
8
- *.joblib filter=lfs diff=lfs merge=lfs -text
9
- *.lfs.* filter=lfs diff=lfs merge=lfs -text
10
- *.lz4 filter=lfs diff=lfs merge=lfs -text
11
- *.model filter=lfs diff=lfs merge=lfs -text
12
- *.msgpack filter=lfs diff=lfs merge=lfs -text
13
- *.npy filter=lfs diff=lfs merge=lfs -text
14
- *.npz filter=lfs diff=lfs merge=lfs -text
15
- *.onnx filter=lfs diff=lfs merge=lfs -text
16
- *.ot filter=lfs diff=lfs merge=lfs -text
17
- *.parquet filter=lfs diff=lfs merge=lfs -text
18
- *.pb filter=lfs diff=lfs merge=lfs -text
19
- *.pickle filter=lfs diff=lfs merge=lfs -text
20
- *.pkl filter=lfs diff=lfs merge=lfs -text
21
- *.pt filter=lfs diff=lfs merge=lfs -text
22
- *.pth filter=lfs diff=lfs merge=lfs -text
23
- *.rar filter=lfs diff=lfs merge=lfs -text
24
- saved_model/**/* filter=lfs diff=lfs merge=lfs -text
25
- *.tar.* filter=lfs diff=lfs merge=lfs -text
26
- *.tflite filter=lfs diff=lfs merge=lfs -text
27
- *.tgz filter=lfs diff=lfs merge=lfs -text
28
- *.wasm filter=lfs diff=lfs merge=lfs -text
29
- *.xz filter=lfs diff=lfs merge=lfs -text
30
- *.zip filter=lfs diff=lfs merge=lfs -text
31
- *.zst filter=lfs diff=lfs merge=lfs -text
32
- *tfevents* filter=lfs diff=lfs merge=lfs -text
33
- # Audio files - uncompressed
34
- *.pcm filter=lfs diff=lfs merge=lfs -text
35
- *.sam filter=lfs diff=lfs merge=lfs -text
36
- *.raw filter=lfs diff=lfs merge=lfs -text
37
- # Audio files - compressed
38
- *.aac filter=lfs diff=lfs merge=lfs -text
39
- *.flac filter=lfs diff=lfs merge=lfs -text
40
- *.mp3 filter=lfs diff=lfs merge=lfs -text
41
- *.ogg filter=lfs diff=lfs merge=lfs -text
42
- *.wav filter=lfs diff=lfs merge=lfs -text
43
- # Image files - uncompressed
44
- *.bmp filter=lfs diff=lfs merge=lfs -text
45
- *.gif filter=lfs diff=lfs merge=lfs -text
46
- *.png filter=lfs diff=lfs merge=lfs -text
47
- *.tiff filter=lfs diff=lfs merge=lfs -text
48
- # Image files - compressed
49
- *.jpg filter=lfs diff=lfs merge=lfs -text
50
- *.jpeg filter=lfs diff=lfs merge=lfs -text
51
- *.webp filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
README.md DELETED
@@ -1,36 +0,0 @@
1
- ---
2
- annotations_creators:
3
- - expert-generated
4
- language:
5
- - en
6
- language_creators:
7
- - found
8
- license:
9
- - other
10
- multilinguality:
11
- - monolingual
12
- paperswithcode_id: conll-2003
13
- pretty_name: FavsBot
14
- size_categories:
15
- - 10K<n<100K
16
- source_datasets:
17
- - extended|other-reuters-corpus
18
- tags:
19
- - Bot
20
- task_categories:
21
- - token-classification
22
- task_ids:
23
- - named-entity-recognition
24
- train-eval-index:
25
- - col_mapping:
26
- ner_tags: tags
27
- tokens: tokens
28
- metrics:
29
- - name: seqeval
30
- type: seqeval
31
- splits:
32
- eval_split: test
33
- train_split: train
34
- task: token-classification
35
- task_id: entity_extraction
36
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
default/favs_bot-test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cee73a4d08a861aa37a641a1b520f8e268a4058babae443fff35dd93433bd053
3
+ size 2644
default/favs_bot-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cee73a4d08a861aa37a641a1b520f8e268a4058babae443fff35dd93433bd053
3
+ size 2644
default/favs_bot-validation.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cee73a4d08a861aa37a641a1b520f8e268a4058babae443fff35dd93433bd053
3
+ size 2644
favs_bot.py DELETED
@@ -1,188 +0,0 @@
1
- # Inspired by conll2003 dataset
2
- # https://huggingface.co/datasets/conll2003
3
-
4
-
5
- # coding=utf-8
6
- # Copyright 2020 HuggingFace Datasets Authors.
7
- #
8
- # Licensed under the Apache License, Version 2.0 (the "License");
9
- # you may not use this file except in compliance with the License.
10
- # You may obtain a copy of the License at
11
- #
12
- # http://www.apache.org/licenses/LICENSE-2.0
13
- #
14
- # Unless required by applicable law or agreed to in writing, software
15
- # distributed under the License is distributed on an "AS IS" BASIS,
16
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
- # See the License for the specific language governing permissions and
18
- # limitations under the License.
19
-
20
- # Lint as: python3
21
- """Introduction to the CoNLL-2003 Shared Task: Language-Independent Named Entity Recognition"""
22
-
23
- import os
24
-
25
- import datasets
26
-
27
-
28
- logger = datasets.logging.get_logger(__name__)
29
-
30
-
31
- _CITATION = """\
32
- @inproceedings{tjong-kim-sang-de-meulder-2003-introduction,
33
- title = "Introduction to the {C}o{NLL}-2003 Shared Task: Language-Independent Named Entity Recognition",
34
- author = "Tjong Kim Sang, Erik F. and
35
- De Meulder, Fien",
36
- booktitle = "Proceedings of the Seventh Conference on Natural Language Learning at {HLT}-{NAACL} 2003",
37
- year = "2003",
38
- url = "https://www.aclweb.org/anthology/W03-0419",
39
- pages = "142--147",
40
- }
41
- """
42
-
43
- _DESCRIPTION = """\
44
- The shared task of CoNLL-2003 concerns language-independent named entity recognition. We will concentrate on
45
- four types of named entities: persons, locations, organizations and names of miscellaneous entities that do
46
- not belong to the previous three groups.
47
-
48
- The CoNLL-2003 shared task data files contain four columns separated by a single space. Each word has been put on
49
- a separate line and there is an empty line after each sentence. The first item on each line is a word, the second
50
- a part-of-speech (POS) tag, the third a syntactic chunk tag and the fourth the named entity tag. The chunk tags
51
- and the named entity tags have the format I-TYPE which means that the word is inside a phrase of type TYPE. Only
52
- if two phrases of the same type immediately follow each other, the first word of the second phrase will have tag
53
- B-TYPE to show that it starts a new phrase. A word with tag O is not part of a phrase. Note the dataset uses IOB2
54
- tagging scheme, whereas the original dataset uses IOB1.
55
-
56
- For more details see https://www.clips.uantwerpen.be/conll2003/ner/ and https://www.aclweb.org/anthology/W03-0419
57
- """
58
-
59
- _URL = "https://data.deepai.org/conll2003.zip"
60
- _TRAINING_FILE = "train.txt"
61
- _DEV_FILE = "valid.txt"
62
- _TEST_FILE = "test.txt"
63
-
64
-
65
- # class Conll2003Config(datasets.BuilderConfig):
66
- # """BuilderConfig for Conll2003"""
67
-
68
- # def __init__(self, **kwargs):
69
- # """BuilderConfig forConll2003.
70
-
71
- # Args:
72
- # **kwargs: keyword arguments forwarded to super.
73
- # """
74
- # super(Conll2003Config, self).__init__(**kwargs)
75
-
76
-
77
- class Conll2003(datasets.GeneratorBasedBuilder):
78
- # """Conll2003 dataset."""
79
-
80
- # BUILDER_CONFIGS = [
81
- # Conll2003Config(name="conll2003", version=datasets.Version(
82
- # "1.0.0"), description="Conll2003 dataset"),
83
- # ]
84
-
85
- VERSION = datasets.Version("1.1.0")
86
- DEFAULT_CONFIG_NAME = "first_domain"
87
- BUILDER_CONFIGS = [
88
- # datasets.BuilderConfig(name="first_domain", version=VERSION,
89
- # description="This part of my dataset covers a first domain"),
90
- # datasets.BuilderConfig(name="second_domain", version=VERSION,
91
- # description="This part of my dataset covers a second domain"),
92
- ]
93
-
94
- def _info(self):
95
- return datasets.DatasetInfo(
96
- description=_DESCRIPTION,
97
- features=datasets.Features(
98
- {
99
- "id": datasets.Value("string"),
100
- "tokens": datasets.Sequence(datasets.Value("string")),
101
- "ner_tags": datasets.Sequence(
102
- datasets.features.ClassLabel(
103
- names=[
104
- "O",
105
- "B-PER",
106
- "I-PER",
107
- "B-TAG",
108
- "I-TAG",
109
- "B-LOC",
110
- "I-LOC",
111
- "B-TIME",
112
- "I-TIME",
113
- "B-SORT",
114
- "I-SORT"
115
- ]
116
- )
117
- ),
118
- }
119
- ),
120
- supervised_keys=None,
121
- homepage="https://www.aclweb.org/anthology/W03-0419/",
122
- citation=_CITATION,
123
- )
124
-
125
- def _split_generators(self, dl_manager):
126
- """Returns SplitGenerators."""
127
- # downloaded_file = dl_manager.download_and_extract(_URL)
128
- # data_files = {
129
- # "train": os.path.join(downloaded_file, _TRAINING_FILE),
130
- # "dev": os.path.join(downloaded_file, _DEV_FILE),
131
- # "test": os.path.join(downloaded_file, _TEST_FILE),
132
- # }
133
-
134
- # data_files = {
135
- # "train": os.path.join(downloaded_file, _TRAINING_FILE),
136
- # "dev": os.path.join(downloaded_file, _DEV_FILE),
137
- # "test": os.path.join(downloaded_file, _TEST_FILE),
138
- # }
139
-
140
- url = "https://pastebin.pl/view/raw/f1bffd94"
141
- text_file = dl_manager.download(url)
142
-
143
- data_files = {
144
- "train": text_file,
145
- "dev": text_file,
146
- "test": text_file,
147
- }
148
-
149
- return [
150
- datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={
151
- "filepath": data_files["train"]}),
152
- datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={
153
- "filepath": data_files["dev"]}),
154
- datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={
155
- "filepath": data_files["test"]}),
156
- ]
157
-
158
- def _generate_examples(self, filepath):
159
- logger.info("⏳ Generating examples from = %s", filepath)
160
- with open(filepath, encoding="utf-8") as f:
161
- guid = 0
162
- tokens = []
163
- pos_tags = []
164
- chunk_tags = []
165
- ner_tags = []
166
- for line in f:
167
- if line.startswith("-DOCSTART-") or line == "" or line == "\n":
168
- if tokens:
169
- yield guid, {
170
- "id": str(guid),
171
- "tokens": tokens,
172
- "ner_tags": ner_tags,
173
- }
174
- guid += 1
175
- tokens = []
176
- ner_tags = []
177
- else:
178
- # conll2003 tokens are space separated
179
- splits = line.split(" ")
180
- tokens.append(splits[0])
181
- ner_tags.append(splits[1].rstrip())
182
- # last example
183
- if tokens:
184
- yield guid, {
185
- "id": str(guid),
186
- "tokens": tokens,
187
- "ner_tags": ner_tags,
188
- }