Datasets:
Tasks:
Token Classification
Languages:
English
Size:
10K<n<100K
Tags:
Not-For-All-Audiences
License:
importdb: keep rating tags that are not from the csv
Browse files- e6db/importdb.py +2 -1
e6db/importdb.py
CHANGED
@@ -170,8 +170,9 @@ def normalize_tag_list(tag_freqs, tags, aliases, impls, min_freq=2, blacklist=No
|
|
170 |
# Join categories
|
171 |
used_tags = (
|
172 |
used_tags.join(
|
173 |
-
tags.lazy(), how="
|
174 |
)
|
|
|
175 |
.sort("freq", descending=True)
|
176 |
.filter(col("freq") >= min_freq)
|
177 |
.collect()
|
|
|
170 |
# Join categories
|
171 |
used_tags = (
|
172 |
used_tags.join(
|
173 |
+
tags.lazy(), how="left", left_on="tag", right_on="name", validate="1:1"
|
174 |
)
|
175 |
+
.with_columns(col("category").fill_null(0))
|
176 |
.sort("freq", descending=True)
|
177 |
.filter(col("freq") >= min_freq)
|
178 |
.collect()
|