Giter Site home page Giter Site logo

kjcollins / lingpy-interface Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 2.0 1.06 MB

An interface and extension to LingPy: Python library for quantitative tasks in historical linguistics.

License: GNU General Public License v3.0

Jupyter Notebook 2.96% HTML 96.94% Python 0.11%

lingpy-interface's Introduction

lingpy-interface

An interface and extension to LingPy: Python library for quantitative tasks in historical linguistics.

Also in this repository are files for work presented in "An Interface and Case Studies for Automatic Cognate Detection Methods" (link forthcoming), a senior linguistics thesis at Swarthmore College.

Files

  • ABVDStudy.ipynb and SlavicStudy.ipynb contain code run for case studies in the thesis
  • workflow.py contains deprecated code from LingPy 2.5, as reference
  • input/ contains any input files used in the iPython notebooks or other scripts
  • all scripts and notebooks are hardcoded to write files to output/
  • result_files/ contains files with results discussed in the thesis

Tools

  • swadesh_scraper.py
  • interface.ipynb

User Instructions

Start with Anaconda installation instructions for your system at the Anaconda documentation link.

Once Anaconda is installed, you can use pip to install new packages into the Anaconda Python distribution. Install LingPy according to the instructions at its repository, here. To install with pip, open a terminal and type in the following:

$ pip install lingpy

Then, to install the code in this repository, type:

$ git clone https://github.com/kjcollins/lingpy-interface.git
$ cd lingpy-interface

To use the interface in interface.ipynb, make sure you're in the lingpy-interface directory, and run:

$ jupyter notebook

This creates a local server for Jupyter/iPython notebooks. It should open automatically with your default browser.

Start exploring the interface! Any .ipynb files can be viewed and edited from the server's directory listing. The other tools and files in this repository can be viewed using the notebook server, or with any text editor or IDE as desired.

To close the notebook server, type command-C (for MacOS, or whatever kills a process on your system).

lingpy-interface's People

Contributors

kjcollins avatar

Stargazers

HU Yao-Chieh avatar L. Lei avatar Johann-Mattis List avatar

Watchers

 avatar

Forkers

lingulist

lingpy-interface's Issues

Consider segmenting the data before clustering them

This is an excellent example for making lingpy more accessible. I'd recommend, following ideas outlined here, to segment the data beforehand. The bad results in the description (the PDF online) for Slavic are probably due to the fact that OCS is just "NONE" in the IPA column? By adding the TOKENS column directly, going through the pain of segmenting the data semi-automatically, using either EDICTOR or the segments package (which can be called through lingpy, see here, results will drastically increase, and people will have more fun with the algos...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.