def tagmaptoaxismap(tagmap):
  """converts a tag: (score, axis) dict to a axis: [tag, tag, tag...] dict"""
  axismap = {}
  for tag, (score, axis) in tagmap.items():
    if axis in axismap:
      axismap[axis].append(tag)
    else:
      axismap[axis] = [tag]
  if not axismap:
    axismap[(0,100)] = []
  return axismap