This code example accompanies the Blog Post "How to Compute Colexification Networks with CL Toolkit (How to do X in Linguistics 11)" by List (2022).
You need to install the python-igraph
package, networkx
, lingpy
, and cltoolkit
:
$ pip install python-igraph
$ pip install networkx
$ pip install lingpy
$ pip install cltoolkit
For the visualization, you need Cytoscape.
As dataset, we use the Intercontinental Dictionary Series, which you can either download from GitHub or directly clone with git
:
$ git clone https://github.com/intercontinental-dictionary-series/ids
To run the code, just type:
$ python colexification.py