loanpy


Nameloanpy JSON
Version 0.1.7 PyPI version JSON
download
home_pagehttps://github.com/martino-vic/loanpy
Summaryframework for detecting old loanwords
upload_time2020-10-24 18:46:37
maintainer
docs_urlNone
authorViktor Martinović
requires_python>=3.6
licenseAcademic Free License ("AFL") v. 3.0
keywords historical linguistics computational linguistics lexicology uralistics borrowing detection contact linguistics loanword adaptation
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            LOANPY
======

| |loanpy|
| |Build Status|

loanpy is a tool for historical linguists. It extracts sound changes and
constraints from an etymological dictionary, generates pseudo-roots for
L1, pseudo- sound-substitutions for L2, searches for phonetically identical lexemes and
ranks those according to semantic similarity.

Installation
~~~~~~~~~~~~

.. code:: sh

    $ python -m pip install loanpy

Getting started
~~~~~~~~~~~~~~~

.. code:: sh

    >>> from loanpy import loanfinder as lf

Download and unpack 3 Gigabytes of `pretrained Google-News
vectors <https://drive.google.com/file/d/0B7XkCwpI5KDYNlNUTTlSS21pQmM/edit>`__. Move *GoogleNews-vectors-negative300.bin* to the folder "data", the full path to which can be retrieved via:

.. code:: sh

    >>> import os
    >>> print(os.path.dirname(lf.__file__)+r"\data")

Following code will compare a set of Gothic words (data/dfgot.csv) with Hungarian words (data/zaicz.csv) and evaluate which elements are the most likely candidates for loanwords.
The result can be viewed in data/results/matches.csv:

::

    >>> lf.loandf()

Data Sources
_________________
`Gábor Zaicz's  Hungarian etymological dictionary from 2006 <https://regi.tankonyvtar.hu/hu/tartalom/tinta/TAMOP-4_2_5-09_Etimologiai_szotar/adatok.html>`__

`Gerhard Köbler's Gothic database <https://koeblergerhard.de/wikiling/?f=got>`__

`Hungarian Academy of Science's online version of Uralisches Etymologisches Wörterbuch <http://uralonet.nytud.hu>`__

License
-------

Academic Free License (AFL) (Creative Commons Attribution 4.0
International)

.. |loanpy| image:: https://github.com/martino-vic/loanpy/blob/master/logo_resizeimage.svg
   :target: https://pypi.org/project/loanpy/
.. |Build Status| image:: https://about.zenodo.org/static/img/logos/zenodo-gradient-square.svg
   :target: https://zenodo.org/record/4100594#.X5RgbIgzaUk
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/martino-vic/loanpy",
    "name": "loanpy",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "historical linguistics,computational linguistics,lexicology,Uralistics,borrowing detection,contact linguistics,loanword adaptation",
    "author": "Viktor Martinovi\u0107",
    "author_email": "viktor.martinovic@hotmail.com",
    "download_url": "https://files.pythonhosted.org/packages/f8/58/d413ff7f47c1ecc0a4306c8aef2e1d62b26204935b0994e1706cc8a0791b/loanpy-0.1.7.tar.gz",
    "platform": "",
    "description": "LOANPY\n======\n\n| |loanpy|\n| |Build Status|\n\nloanpy is a tool for historical linguists. It extracts sound changes and\nconstraints from an etymological dictionary, generates pseudo-roots for\nL1, pseudo- sound-substitutions for L2, searches for phonetically identical lexemes and\nranks those according to semantic similarity.\n\nInstallation\n~~~~~~~~~~~~\n\n.. code:: sh\n\n    $ python -m pip install loanpy\n\nGetting started\n~~~~~~~~~~~~~~~\n\n.. code:: sh\n\n    >>> from loanpy import loanfinder as lf\n\nDownload and unpack 3 Gigabytes of `pretrained Google-News\nvectors <https://drive.google.com/file/d/0B7XkCwpI5KDYNlNUTTlSS21pQmM/edit>`__. Move *GoogleNews-vectors-negative300.bin* to the folder \"data\", the full path to which can be retrieved via:\n\n.. code:: sh\n\n    >>> import os\n    >>> print(os.path.dirname(lf.__file__)+r\"\\data\")\n\nFollowing code will compare a set of Gothic words (data/dfgot.csv) with Hungarian words (data/zaicz.csv) and evaluate which elements are the most likely candidates for loanwords.\nThe result can be viewed in data/results/matches.csv:\n\n::\n\n    >>> lf.loandf()\n\nData Sources\n_________________\n`G\u00e1bor Zaicz's  Hungarian etymological dictionary from 2006 <https://regi.tankonyvtar.hu/hu/tartalom/tinta/TAMOP-4_2_5-09_Etimologiai_szotar/adatok.html>`__\n\n`Gerhard K\u00f6bler's Gothic database <https://koeblergerhard.de/wikiling/?f=got>`__\n\n`Hungarian Academy of Science's online version of Uralisches Etymologisches W\u00f6rterbuch <http://uralonet.nytud.hu>`__\n\nLicense\n-------\n\nAcademic Free License (AFL) (Creative Commons Attribution 4.0\nInternational)\n\n.. |loanpy| image:: https://github.com/martino-vic/loanpy/blob/master/logo_resizeimage.svg\n   :target: https://pypi.org/project/loanpy/\n.. |Build Status| image:: https://about.zenodo.org/static/img/logos/zenodo-gradient-square.svg\n   :target: https://zenodo.org/record/4100594#.X5RgbIgzaUk",
    "bugtrack_url": null,
    "license": "Academic Free License (\"AFL\") v. 3.0",
    "summary": "framework for detecting old loanwords",
    "version": "0.1.7",
    "split_keywords": [
        "historical linguistics",
        "computational linguistics",
        "lexicology",
        "uralistics",
        "borrowing detection",
        "contact linguistics",
        "loanword adaptation"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "8bc49cd6c46f5687a387af8a167cccfd",
                "sha256": "e036516c89eb60241d760c649f0ef5209b567c976e88284db6d33ac8629f1f89"
            },
            "downloads": -1,
            "filename": "loanpy-0.1.7.tar.gz",
            "has_sig": false,
            "md5_digest": "8bc49cd6c46f5687a387af8a167cccfd",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 1346734,
            "upload_time": "2020-10-24T18:46:37",
            "upload_time_iso_8601": "2020-10-24T18:46:37.632907Z",
            "url": "https://files.pythonhosted.org/packages/f8/58/d413ff7f47c1ecc0a4306c8aef2e1d62b26204935b0994e1706cc8a0791b/loanpy-0.1.7.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2020-10-24 18:46:37",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": null,
    "github_project": "martino-vic",
    "error": "Could not fetch GitHub repository",
    "lcname": "loanpy"
}
        
Elapsed time: 0.15347s