Di's EvalSnippet for F1 measure