kendall_tau(predicted_rank_vector,
original_rank_vector,
**kwargs)
| source code
|
This is the refined calculation of segment-level Kendall tau of
predicted vs human ranking according to WMT12 (Birch et. al 2012)
- Parameters:
predicted_rank_vector ([str, ..]) - a list of integers representing the predicted ranks
original_rank_vector ([str, ..]) - the name of the attribute containing the human rank
ties (string) - way of handling ties, passed to sentence.ranking.Ranking object
- Returns: namedtuple(float, float, int, int, int, int, int, int)
- the Kendall tau score, the probability for the null hypothesis of
X and Y being independent the count of concordant pairs, the
count of discordant pairs, the count of pairs used for
calculating tau (excluding "invalid" pairs) the count
of original ties, the count of predicted ties, the count of all
pairs
|