eng-syl


Nameeng-syl JSON
Version 4.0.1 PyPI version JSON
download
home_pagehttps://github.com/ellipse-liu/eng-syl
SummaryEnglish word syllabifier and extended syllable analysis tool
upload_time2023-12-13 09:04:21
maintainer
docs_urlNone
authorTimothy-Liu
requires_python
licenseMIT
keywords syllable nlp psycholinguistics
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # English Syllabifier (eng_syl)
This is a GRU-based neural network designed for English word syllabification. The model was trained on data from the  [Wikimorph](https://link.springer.com/chapter/10.1007/978-3-030-78270-2_72) dataset.

## Usage

Use the `syllabify()` function from the `Syllabel` class to syllabify your words:

>     >>> from eng_syl.syllabify import Syllabel
>     >>> syllabler = Syllabel()
>     >>> syllabler.syllabify("chomsky")
>     'chom-sky'

`syllabify()` parameters

 - **text**: *string*- English text to be syllabified. Input should only contain alphabetic characters.

`syllabify()` returns the given word with hyphens inserted at syllable boundaries.

## Onceler (Onset, Nucleus, Coda Segmenter)

The `onc_split()` function from the  `Onceler` class splits single syllables into their constituent Onset, Nucleus, and Coda components.

>     >>> from eng_syl.onceler import Onceler
>     >>> lorax = Onceler()
>     >>> print(lorax.onc_split("sloan")
>     'sl-oa-n'

 - **text**: *string* - English single syllable word/ component to be segmented into Onset, Nucleus, Coda. Input should only contain alphabetic characters.

## Phonify (Grapheme sequence to IPA estimation)

The `ipafy()` function from the  `on_to_phon` class tries to approximate an IPA pronunciation from a sequence of graphemes.

>     >>> from eng_syl.phonify import onc_to_phon
>     >>> skibidi = onc_to_phon()
>     >>> print(skibidi.ipafy(['b', 'u', 'tt'])
>     'bÊŒt'

 - **sequence**: *array of strings* - sa sequence of English viable onsets, nuclei, and coda


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/ellipse-liu/eng-syl",
    "name": "eng-syl",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "Syllable,NLP,psycholinguistics",
    "author": "Timothy-Liu",
    "author_email": "timothys.new.email@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/93/b8/95cadf2233c58fe70936426c83424e7004c854838ce02975397b43517220/eng-syl-4.0.1.tar.gz",
    "platform": null,
    "description": "\u00ef\u00bb\u00bf# English Syllabifier (eng_syl)\r\nThis is a GRU-based neural network designed for English word syllabification. The model was trained on data from the  [Wikimorph](https://link.springer.com/chapter/10.1007/978-3-030-78270-2_72) dataset.\r\n\r\n## Usage\r\n\r\nUse the `syllabify()` function from the `Syllabel` class to syllabify your words:\r\n\r\n>     >>> from eng_syl.syllabify import Syllabel\r\n>     >>> syllabler = Syllabel()\r\n>     >>> syllabler.syllabify(\"chomsky\")\r\n>     'chom-sky'\r\n\r\n`syllabify()` parameters\r\n\r\n - **text**: *string*- English text to be syllabified. Input should only contain alphabetic characters.\r\n\r\n`syllabify()` returns the given word with hyphens inserted at syllable boundaries.\r\n\r\n## Onceler (Onset, Nucleus, Coda Segmenter)\r\n\r\nThe `onc_split()` function from the  `Onceler` class splits single syllables into their constituent Onset, Nucleus, and Coda components.\r\n\r\n>     >>> from eng_syl.onceler import Onceler\r\n>     >>> lorax = Onceler()\r\n>     >>> print(lorax.onc_split(\"sloan\")\r\n>     'sl-oa-n'\r\n\r\n - **text**: *string* - English single syllable word/ component to be segmented into Onset, Nucleus, Coda. Input should only contain alphabetic characters.\r\n\r\n## Phonify (Grapheme sequence to IPA estimation)\r\n\r\nThe `ipafy()` function from the  `on_to_phon` class tries to approximate an IPA pronunciation from a sequence of graphemes.\r\n\r\n>     >>> from eng_syl.phonify import onc_to_phon\r\n>     >>> skibidi = onc_to_phon()\r\n>     >>> print(skibidi.ipafy(['b', 'u', 'tt'])\r\n>     'b\u00ca\u0152t'\r\n\r\n - **sequence**: *array of strings* - sa sequence of English viable onsets, nuclei, and coda\r\n\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "English word syllabifier and extended syllable analysis tool",
    "version": "4.0.1",
    "project_urls": {
        "Homepage": "https://github.com/ellipse-liu/eng-syl"
    },
    "split_keywords": [
        "syllable",
        "nlp",
        "psycholinguistics"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6560f7fc2268d8bac1211e82a09f4fac7f2ad94b8f83ae0e89cd9645aca70707",
                "md5": "21bd4bb64788130a5dc7c1964d4d2458",
                "sha256": "61082d4114ad127ad2f757f328eecf92a9485f22eb49cac51bd261c109e97900"
            },
            "downloads": -1,
            "filename": "eng_syl-4.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "21bd4bb64788130a5dc7c1964d4d2458",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 86354657,
            "upload_time": "2023-12-13T09:03:53",
            "upload_time_iso_8601": "2023-12-13T09:03:53.110056Z",
            "url": "https://files.pythonhosted.org/packages/65/60/f7fc2268d8bac1211e82a09f4fac7f2ad94b8f83ae0e89cd9645aca70707/eng_syl-4.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "93b895cadf2233c58fe70936426c83424e7004c854838ce02975397b43517220",
                "md5": "607e25ebf8f7b03c46b6a450393f29ca",
                "sha256": "36030f3ba3ae29ba2129fbd73a344d603f66ea9106de688f59657d9fc94dd8a3"
            },
            "downloads": -1,
            "filename": "eng-syl-4.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "607e25ebf8f7b03c46b6a450393f29ca",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 86447190,
            "upload_time": "2023-12-13T09:04:21",
            "upload_time_iso_8601": "2023-12-13T09:04:21.770108Z",
            "url": "https://files.pythonhosted.org/packages/93/b8/95cadf2233c58fe70936426c83424e7004c854838ce02975397b43517220/eng-syl-4.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-13 09:04:21",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ellipse-liu",
    "github_project": "eng-syl",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "eng-syl"
}
        
Elapsed time: 0.15901s