from e6db_reader import TagNormalizer, tag_categories, tag_category2id | |
tn = TagNormalizer('data') | |
tn.map_inputs(lambda tag, tid: tag.replace('_', ' ')) | |
for tag in ['pokemon', 'pikachu', 'charizard', 'loona']: | |
print(tag, tn.get_category(tag)) | |
from e6db_reader import TagNormalizer, tag_categories, tag_category2id | |
tn = TagNormalizer('data') | |
tn.map_inputs(lambda tag, tid: tag.replace('_', ' ')) | |
for tag in ['pokemon', 'pikachu', 'charizard', 'loona']: | |
print(tag, tn.get_category(tag)) | |