Regenerate the dataset to include language and READMEs
Browse files- data_collection_utils/scrape_gh_docs.py +1 -1
- texts.parquet +2 -2
data_collection_utils/scrape_gh_docs.py
CHANGED
|
@@ -217,7 +217,7 @@ def collect_md_rows_for_repo_dir(
|
|
| 217 |
lid_code, _ = langid.classify(text)
|
| 218 |
lang_code = lid_code
|
| 219 |
if lang_filter_value is not None and str(lang_filter_value).strip() != "":
|
| 220 |
-
include =
|
| 221 |
else:
|
| 222 |
if lang_filter_value is not None and str(lang_filter_value).strip() != "":
|
| 223 |
include = False
|
|
|
|
| 217 |
lid_code, _ = langid.classify(text)
|
| 218 |
lang_code = lid_code
|
| 219 |
if lang_filter_value is not None and str(lang_filter_value).strip() != "":
|
| 220 |
+
include = lang_code == lang_filter_value
|
| 221 |
else:
|
| 222 |
if lang_filter_value is not None and str(lang_filter_value).strip() != "":
|
| 223 |
include = False
|
texts.parquet
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:f2a92e3584da99dbead579f676b601830d81c8007caa6258e478a1d3c2650e89
|
| 3 |
+
size 380081961
|