历史语言学中定量任务的python库
lingp的Python项目详细描述
#lingpy:历史语言学中自动任务的python库
这个存储库包含python包lingpy
,它可以用于计算历史语言学中的各种任务。
[![生成状态](https://travis-ci.org/lingpy/lingpy.svg?branch=master)](https://travis-ci.org/lingpy/lingpy) [![codecov.io](http://codecov.io/github/lingpy/lingpy/coverage.svg?branch=master)](http://codecov.io/github/lingpy/lingpy?分支=主) [![doi](https://zenodo.org/badge/doi/10.5281/zenodo.597082.svg)](https://doi.org/10.5281/zenodo.597082) [![PYPI版本](https://badge.fury.io/py/lingpy.png)](https://badge.fury.io/py/lingpy) [![文档](https://bade.fury.io/py/lingpy.png)](https://lingpy.github.io)
作者:[johann mattis list](https://github.com/linguist)、[max planck institute for the science of human history](http://shh.mpg.de/)、[simon greenhill](https://github.com/simongreenhill)、[max planck institute for the science of human history](http://shh.mpg.de/)和[robert forkel](https://github.com/xrotwang)、[max planck institute for the science of human history](http://shh.mpg.de/))
合作者: 史蒂文·莫兰([苏黎世大学](http://www.linguistik.uzh.ch/about/mitglieder/moran.html)、[彼得·布达](http://www.peterbouda.eu/)、约翰内斯·德勒特([苏宾根大学](http://www.sfs.uni-tuebingen.de/~gjaeger/evolaemp/index.html))、塔拉卡·拉马([语言技术中心](http://clt.gu.se/)、哥德堡)、蒂亚戈·特雷索迪([MPI-SHH](https://www.shh.mpg.de))和基伦·开平([莱顿大学](https://www.universiteitleiden.nl/))
lingpy是一个历史语言学的python库。它是为Python2.7和Python3.x开发的 使用[单个代码基](https://docs.python.org/3/howto/pyporting.html)。
- 所有源代码都可以在:[https://github.com/lingpy/lingpy](https://github.com/lingpy/lingpy找到。
- 文档位于:[http://lingpy.org](http://lingpy.org)。
- 有关使用lingpy的论文列表,请参见[此处](https://github.com/lingpy/lingpy/blob/master/PAPERS.md)。
##快速安装
对于我们最新的稳定版本,您可以简单地使用pip或easy_install进行安装: `bash $ pip install lingpy ` 或 `bash $ easy_install lingpy ` 根据您使用的简易安装或pip版本,将安装python2或python3版本的lingpy。
如果要在系统上安装当前github版本的lingpy,请打开一个终端并键入以下内容: `bash $ git clone https://github.com/lingpy/lingpy/ $ cd lingpy $ python setup.py install `
如果上面的最后一个命令返回有关用户权限的错误(通常为“errno 13”),则可以安装 在您的家庭python设置中使用lingpy: ` $ python setup.py install --user `
为了使用库,启动交互式python会话并导入lingpy,如下所示: `python >>> from lingpy import * `
要安装lingpy来破解它,在github上分叉存储库,打开一个终端并键入: `bash $ git clone https://github.com/<your-github-user>/lingpy/ $ cd lingpy $ python setup.py develop ` 这将在[“开发模式”](http://pythonhosted.org//setuptools/setuptools.html#development-mode)中安装lingpy, 也就是说,您将能够编辑克隆存储库中的源代码,并像导入常规python包一样导入修改后的代码。