Cooking with CLICS

Robert Forkel just published a very nice cookbook example for our CLICS database (List et al. 2018f, http://clics.clld.org), where you can find out how to manipulate the data further, apart from just installing it and running it to replicate our analyses.

This cookbook tells you how the underlying SQLITE database is structured and how you can, after installing CLICS and the respective packages, access the data to conduct studies of your own.

As a little example of what you can do with the new CLICS API, let me illustrate in this post, how we can use the old CLICS data (underlying the version 1.0 by List et al. 2014, http://clics.lingpy.org), available from here, in the new application, specifically the standalone that we provide.

In order to get started, we begin by installing the pyclics API. For this, I assume that Python3 is installed in a recent version on our system, along with pip the command for downloading and installing new packages, and the version-control system git.

In order to install the pyclics API, simply type the following in your terminal:

$ git clone https://github.com/clics/clics2
$ cd clics2
$ pip install -e .

Now, you can install the old CLICS data underlying version 1.0.

$ pip install -e git+https://github.com/clics/clics1.git@v1.1#egg=lexibank_clics1

In addition, you need to install pyglottolog and pyconcepticon, but not with pip, but rather as local clones (as you need to know where they are installed. So we recommend to install both packages by opening your terminal in your preferred folder (ideally the one where you installed pyclics).

$ cd ..
$ git clone https://github.com/clld/concepticon-data
$ cd concepticon-data
$ pip install -e .
$ cd ..
$ git clone https://github.com/clld/glottolog
$ pip install -e .
$ cd ..

Now you can load the data into your personal CLICS database by simply typing:

$ clics load ./concepticon-data ./glottolog

In order to calculate the colexification network, just type:

$ clics -t 2 colexification

In order to create a standalone application for the data which you can put on a server or browse (when using Firefox as webbrowser) even locally, type:

$ clics -t 2 communities
$ clics -t 3 subgraph

You will find the application in the path clics2/app/. Just click on the file index.html and open it, and you can see an interface that reminds of the old “look-and-feel” of CLICS.

If you want to have a closer look at the network without following all the code examples above, you can also directly access it at http://calc.digling.org/clics1, where we have uploaded the version that we created ourselves in order to test this example.

References

List, J.-M., T. Mayer, A. Terhalle, and M. Urban (eds.) (2014): CLICS: Database of Cross-Linguistic Colexifications. Version 1.0. Forschungszentrum Deutscher Sprachatlas: Marburg. http://www.webcitation.org/6ccEMrZYM

List, J.-M., S. Greenhill, C. Anderson, T. Mayer, T. Tresoldi, and R. Forkel (eds.) (2018): CLICS: Database of Cross-Linguistic Colexifications. Max Planck Institute for the Science of Human History: Jena.


OpenEdition suggests that you cite this post as follows:
Johann-Mattis List (August 8, 2018). Cooking with CLICS. Computer-Assisted Language Comparison in Practice. Retrieved October 3, 2024 from https://doi.org/10.58079/m6js


This entry was posted in Code, Dataset and tagged , , , on by .

About Johann-Mattis List

Seit Anfang 2023 leite ich den Lehrstuhl für Multilinguale Computerlinguistik in Passau. In meiner Forschung nehme ich generell einen datenbasierten, empirischen und quantitativen Standpunkt in Bezug auf Sprachwandel und Sprachgeschichte ein, mit einem speziellen Fokus auf südostasiatischen Sprachen. Im Gegensatz zu rein computerbasierten Ansätzen versuche ich jedoch, meine Forschung nah an der traditionellen historischen Linguistik und der linguistischen Theorie auszurichten, weshalb ich einen computer-gestützten Ansatz im Gegensatz zu einem rein computer-basierten Ansatz verfolge.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.