Skip to content

Instantly share code, notes, and snippets.

Avatar

Johann-Mattis List LinguList

View GitHub Profile
@LinguList
LinguList / README.md
Last active Jul 15, 2022
How to Compute Colexification Networks with CL Toolkit
View README.md

How to Compute Colexification Networks with CL Toolkit (Supplementary Material)

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
@LinguList
LinguList / Makefile
Last active Jun 3, 2022
How to Compute Colexifications with CL Toolkit
View Makefile
install:
git clone https://github.com/intercontinental-dictionary-series/ids.git
git clone https://github.com/lexibank/northeuralex.git
pip install cltoolkit
colexifications:
python colexifications.py
View README.md
@LinguList
LinguList / README.md
Last active Feb 23, 2021
Working with WALS Data in CLDF
View README.md

How to work with WALS data in CLDF

This code example accomanies a blog post published as part of the blog "Computer-Assisted Langauge Comparison in Practice" (https://calc.hypotheses.org).

In order to get started, install the WALS dataset in CLDF format with the help of pip (ideally, make sure to use a fresh virtual environment!).

$ pip install -e git+https://github.com/cldf-datasets/wals.git@v2020#egg=cldfbench_wals

Once this has been done, you should be able to run the script wals.py by simply typing:

View README.md

Automated Mapping of Metadata to Concepticon

See the blog at https://calc.hypotheses.org for details.

To run the code, just type:

$ python code.py
View README.md

Feature-Based Alignment Analyses with LingPy and CLTS (2)

Requirements (can all be installed with PIP)

  • lingpy
  • pyclts

Run code

@LinguList
LinguList / README.md
Created Aug 17, 2019
Feature-Based Alignment Analyses with LingPy and CLTS (1)
View README.md

Feature-Based Alignment Analyses with LingPy and CLTS (1)

Requirements (can all be installed with PIP)

  • pyclts
  • tabulate

Run code

@LinguList
LinguList / README.md
Created Jul 11, 2019
Waterman-Eggert Illustration and Patch for LingPy
View README.md

Waterman-Eggert algorithm for Sentence Alignment

This is a short patch for LingPy's Waterman-Eggert implementation and an illustration how the algorithm can be used to carry out the alignment of two sentences provided in phonetic transcription in linguistics. To test this script, make sure to install LingPy and run the following in your terminal:

$ python code.py
@LinguList
LinguList / Bodth-2019-664.tsv
Created Jun 26, 2019
Checking the intersection of concept lists with `pyconcepticon`
View Bodth-2019-664.tsv
ID NUMBER ENGLISH CONCEPTICON_ID CONCEPTICON_GLOSS
Bodth-2019-664-1 1 1sg 1209 I
Bodth-2019-664-2 2 2pl.excl 1213 YOU
Bodth-2019-664-3 3 2pl.incl 1131 WE (INCLUSIVE)
Bodth-2019-664-4 4 2sg 1215 THOU
Bodth-2019-664-5 5 3sg 262 HE OR SHE OR IT
Bodth-2019-664-6 6 ablative
Bodth-2019-664-7 7 above, top 2379 UP OR ABOVE
Bodth-2019-664-8 8 achieve, obtain 694 GET
Bodth-2019-664-9 9 aconite
@LinguList
LinguList / README.md
Created Mar 26, 2019
A Primer on Automatic Inference of Sound Correspondence Patterns (3): Extended Experiments with Alignments from the Tableaux Phonétiques des Patois Suisses Romands
View README.md

A Primer on Automatic Inference of Sound Correspondence Patterns (3): Extended Experiments with Alignments from the Tableaux Phonétiques des Patois Suisses Romands

To run the script provided here, make sure to download the GIST, and install the requirements for LingRex. Then, simply type:

$ python code.py