lingpy.meaning package

Submodules

lingpy.meaning.colexification module

Module offers methods to handle colexification patterns in wordlist objects.

lingpy.meaning.colexification.colexification_network(wordlist, entry='ipa', concept='concept', output='', filename='network', bipartite=False, **keywords)

Calculate a colexification network from a given wordlist object.

Parameters

wordlist : ~lingpy.basic.wordlist.Wordlist

The wordlist object containing the data.

entry : str (default=”ipa”)

The reference point for the language entry. We use “ipa” as a default.

concept : str (default=”concept”)

The reference point for the name of the row containing the concepts. We use “concept” as a default.

output: str (default=’’) :

If output is set to “gml”, the resulting network will be written to a textfile in GML format.

Returns

G : networkx.Graph

A networkx.Graph object.

lingpy.meaning.colexification.compare_colexifications(wordlist, entry='ipa', concept='concept')

Compare colexification patterns for a given wordlist.

lingpy.meaning.colexification.evaluate_colexifications(G, weight='wordWeight', outfile=None)

Function calculates most frequent colexifications in a wordlist.

Module contents