LingPy

This documentation is for version 2.0.dev, which is not released yet.

lingpy.evaluate.acd.pairs

lingpy.evaluate.acd.pairs(lex, gold='cogid', test='lexstatid', loans=True, pprint=True)

Compute pair scores for the evaluation of cognate detection algorithms.

lex : lingpy.compare.lexstat.LexStat
The LexStat class used for the computation. It should have two columns indicating cognate IDs.
gold : str (default=’cogid’)
The name of the column containing the gold standard cognate assignments.
test : str (default=’lexstatid’)
The name of the column containing the automatically implemented cognate assignments.
loans : bool (default=True)
If set to c{False}, loans (indicated by negative IDs in the gold standard) will be treated as separate cognates, otherwise, loans will be treated as cognates.
pprint : bool (default=True)
Print out the results
Returns :

t : tuple

A tuple consisting of the precision, the recall, and the harmonic mean (F-scores).

See also

diff, bcubes

Notes

Pair-scores can be computed in different ways, with often different results. This variant follows the description by Bouchard-Cote2013.

This Page