LingPy

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

lingpy.evaluate.acd.bcubes

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

Compute B-Cubed scores for test and reference datasets.

Parameters :

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, pairs

Notes

B-Cubed scores were first described by Bagga1998 as part of an algorithm. Later on, Amigo2009 showed that they can also used as to compare cluster decisions. Hauer2011 applied the B-Cubed scores first to the task of automatic cognate detection.

This Page