fixed problem with rank evaluation. But rank and lemma evaluation differ from original perl script, first is equal