def stars_filter(scorestars):
    """
    Used from the template to produce stars rating the treebank.
    Takes a pair of floats (score,stars).
    """
    score=scorestars[0]
    stars=scorestars[1]
    return '<span class="hint--top hint--info" data-hint="%f"><img src="/img/stars%02d.png" style="max-height:1em; vertical-align:middle" /></span>'%(score,stars*10)