Skip to main content

English word syllabifier and extended syllable analysis tool

Project description

# 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 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

eng-syl-3.0.1.tar.gz (64.0 MB view details)

Uploaded Source

File details

Details for the file eng-syl-3.0.1.tar.gz.

File metadata

  • Download URL: eng-syl-3.0.1.tar.gz
  • Upload date:
  • Size: 64.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.0

File hashes

Hashes for eng-syl-3.0.1.tar.gz
Algorithm Hash digest
SHA256 f509cc4c7a496dce6e2d4d7221a1f597ec570ab3e1fafd5f05d72e8211e2adaf
MD5 34a62e21e1819a0e8ee02d325b02495f
BLAKE2b-256 64f0f09eeaa116187f4b1850e2426cf217442dbb2f4736047f40d00e94d92d84

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page