in tseval/feature_extraction.py [0:0]
def flatten_counter(counter): return [k for key, count in counter.items() for k in [key] * count]