toolkit / demo.py
k4d3's picture
More joy things
1442347
raw
history blame
248 Bytes
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))