>>> from imgutils.tagging import tags_to_text
>>>
>>> # a group of tags
>>> tags = {
... 'panty_pull': 0.6826801300048828,
... 'panties': 0.958938717842102,
... 'drinking_glass': 0.9340789318084717,
... 'areola_slip': 0.41196826100349426,
... '1girl': 0.9988248348236084,
... }
>>>
>>> tags_to_text(tags)
'1girl, panties, drinking_glass, panty_pull, areola_slip'
>>> tags_to_text(tags, use_spaces=True)
'1girl, panties, drinking glass, panty pull, areola slip'
>>> tags_to_text(tags, include_score=True)
'(1girl:0.999), (panties:0.959), (drinking_glass:0.934), (panty_pull:0.683), (areola_slip:0.412)'