Skip to content

Score

Method Description
Comparison.score.frequency Calculates the frequency difference between the reference and comparison corpora.
Comparison.score.jensen_shannon_divergence Calculates the Jensen-Shannon divergence (JSD) between the reference and comparison corpora.
Comparison.score.jsd Calculates the Jensen-Shannon divergence (JSD) between the reference and comparison corpora.
Comparison.score.kld Calculates the Kullback-Leibler divergence (KLD) between the reference and comparison corpora.
Comparison.score.kullback_leibler_divergence Calculates the Kullback-Leibler divergence (KLD) between the reference and comparison corpora.
Comparison.score.lexicon Calculates the difference in lexicon-weighted averages between the reference and comparison corpora.
Comparison.score.proportion Calculates the proportion difference between the reference and comparison corpora.
Comparison.score.rank_divergence Calculates the rank-turbulence divergence between the reference and comparison corpora.
Comparison.score.shannon_entropy Calculates the difference in Shannon entropy between the reference and comparison corpora.
Comparison.score.tsallis_entropy Calculates the difference in Tsallis entropy between the reference and comparison corpora.