change metric to tolerate rare classes.
Merge branch 'master' of https://github.com/strin/postag