Maurice Weber
commited on
Commit
•
bfc4da1
1
Parent(s):
84a48e2
remove test files, fix path
Browse files- RedPajama-Data-V2.py +3 -6
- _QUALITY_SIGNAL_TAGS +0 -42
- urls/en-2017-17-head_middle.txt +0 -3
RedPajama-Data-V2.py
CHANGED
@@ -25,20 +25,17 @@ import gzip
|
|
25 |
logger = datasets.logging.get_logger(__name__)
|
26 |
|
27 |
_DESCRIPTION = """\
|
28 |
-
RedPajama V2 is a
|
29 |
"""
|
30 |
|
31 |
with open("_CC_SNAPSHOT_IDS", "r") as f:
|
32 |
_CC_SNAPSHOT_IDS = [line.strip() for line in f]
|
33 |
|
34 |
-
with open("_QUALITY_SIGNAL_TAGS", "r") as f:
|
35 |
-
_QUALITY_SIGNAL_TAGS = [line.strip() for line in f]
|
36 |
-
|
37 |
_URL_BASE = 'https://data.together.xyz/redpajama-data-v2/v1.0.0'
|
38 |
_LANGUAGES = ("en", "de", "fr", "es", "it")
|
39 |
_SAMPLE_SNAPSHOT_ID = "2023-06"
|
40 |
|
41 |
-
_LISTINGS_PATTERN = "
|
42 |
|
43 |
|
44 |
class RedPajamaDataV2Config(datasets.BuilderConfig):
|
@@ -256,7 +253,7 @@ class RedPajamaV2(datasets.GeneratorBasedBuilder):
|
|
256 |
]
|
257 |
|
258 |
def _split_generators(self, dl_manager):
|
259 |
-
if self.config.name
|
260 |
return self._split_generators_sample(dl_manager)
|
261 |
|
262 |
return self._split_generators_full(dl_manager)
|
|
|
25 |
logger = datasets.logging.get_logger(__name__)
|
26 |
|
27 |
_DESCRIPTION = """\
|
28 |
+
RedPajama V2 is a Data Foundation of Web Text Documents with Quality Annotations.
|
29 |
"""
|
30 |
|
31 |
with open("_CC_SNAPSHOT_IDS", "r") as f:
|
32 |
_CC_SNAPSHOT_IDS = [line.strip() for line in f]
|
33 |
|
|
|
|
|
|
|
34 |
_URL_BASE = 'https://data.together.xyz/redpajama-data-v2/v1.0.0'
|
35 |
_LANGUAGES = ("en", "de", "fr", "es", "it")
|
36 |
_SAMPLE_SNAPSHOT_ID = "2023-06"
|
37 |
|
38 |
+
_LISTINGS_PATTERN = "listings/{language}-{snapshot}-{partition}.txt"
|
39 |
|
40 |
|
41 |
class RedPajamaDataV2Config(datasets.BuilderConfig):
|
|
|
253 |
]
|
254 |
|
255 |
def _split_generators(self, dl_manager):
|
256 |
+
if self.config.name.endswith("sample"):
|
257 |
return self._split_generators_sample(dl_manager)
|
258 |
|
259 |
return self._split_generators_full(dl_manager)
|
_QUALITY_SIGNAL_TAGS
DELETED
@@ -1,42 +0,0 @@
|
|
1 |
-
ccnet_length
|
2 |
-
ccnet_original_length
|
3 |
-
ccnet_nlines
|
4 |
-
ccnet_original_nlines
|
5 |
-
ccnet_language_score
|
6 |
-
ccnet_perplexity
|
7 |
-
ccnet_bucket
|
8 |
-
rps_doc_curly_bracket
|
9 |
-
rps_doc_ldnoobw_words
|
10 |
-
rps_doc_lorem_ipsum
|
11 |
-
rps_doc_stop_word_fraction
|
12 |
-
rps_doc_ut1_blacklist
|
13 |
-
rps_doc_frac_all_caps_words
|
14 |
-
rps_doc_frac_lines_end_with_ellipsis
|
15 |
-
rps_doc_frac_no_alph_words
|
16 |
-
rps_doc_frac_unique_words
|
17 |
-
rps_doc_mean_word_length
|
18 |
-
rps_doc_symbol_to_word_ratio
|
19 |
-
rps_doc_unigram_entropy
|
20 |
-
rps_doc_word_count
|
21 |
-
rps_num_sentences
|
22 |
-
rps_doc_frac_chars_dupe_10grams
|
23 |
-
rps_doc_frac_chars_dupe_5grams
|
24 |
-
rps_doc_frac_chars_dupe_6grams
|
25 |
-
rps_doc_frac_chars_dupe_7grams
|
26 |
-
rps_doc_frac_chars_dupe_8grams
|
27 |
-
rps_doc_frac_chars_dupe_9grams
|
28 |
-
rps_doc_frac_chars_top_2gram
|
29 |
-
rps_doc_frac_chars_top_3gram
|
30 |
-
rps_doc_frac_chars_top_4gram
|
31 |
-
rps_lines_ending_with_terminal_punctution_mark
|
32 |
-
rps_lines_javascript_counts
|
33 |
-
rps_lines_num_words
|
34 |
-
rps_lines_numerical_chars_fraction
|
35 |
-
rps_lines_start_with_bulletpoint
|
36 |
-
rps_lines_uppercase_letter_fraction
|
37 |
-
rps_doc_ml_palm_score
|
38 |
-
rps_doc_ml_wikipedia_score
|
39 |
-
rps_doc_ml_wikiref_score
|
40 |
-
rps_doc_books_importance
|
41 |
-
rps_doc_openwebtext_importance
|
42 |
-
rps_doc_wikipedia_importance
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
urls/en-2017-17-head_middle.txt
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
2017-17/0000/en_head
|
2 |
-
2017-17/0001/en_head
|
3 |
-
2017-17/0002/en_head
|
|
|
|
|
|
|
|