Skip to main content

FurlanG2P: a scalable, library-first G2P and text normalization toolkit (skeleton).

Project description

FurlanG2P

Utilities for converting Friulian (Furlan) text to phonemes. The package includes a tiny gold lexicon and a rule-based engine that together provide an experimental furlang2p command-line tool.

Installation

pip install furlang2p

CLI usage

Phonemise short phrases using the experimental ipa subcommand:

furlang2p ipa "ìsule glace"
# -> ˈizule ˈglatʃe

Wrap tokens in slashes or force rule-only conversion:

furlang2p ipa --with-slashes "glaç"
# -> /ˈglatʃ/

furlang2p ipa --rules-only "glaç"
# -> glatʃ

Use underscores as pause markers and customise the token separator:

furlang2p ipa --sep '|' _ "ìsule" __
# -> _|ˈizule|__

Other subcommands (normalize, g2p, phonemize-csv) are stubs and currently raise NotImplementedError.

Python usage

The same components can be invoked programmatically:

from furlan_g2p.g2p.lexicon import Lexicon
from furlan_g2p.g2p.rule_engine import RuleEngine
from furlan_g2p.phonology import canonicalize_ipa

lex = Lexicon.load_seed()
rules = RuleEngine()
word = "glaç"
ipa = lex.get(word) or canonicalize_ipa(rules.convert(word))
print(ipa)
# -> ˈglatʃ

Project links

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

furlang2p-0.0.4.tar.gz (21.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

furlang2p-0.0.4-py3-none-any.whl (22.7 kB view details)

Uploaded Python 3

File details

Details for the file furlang2p-0.0.4.tar.gz.

File metadata

  • Download URL: furlang2p-0.0.4.tar.gz
  • Upload date:
  • Size: 21.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for furlang2p-0.0.4.tar.gz
Algorithm Hash digest
SHA256 190d30fb4021617a31d2da6e708ad34a5f23ac392a542aba615bb2558ad6b430
MD5 6d11748deec7f0b6ab376a7a4a496bdd
BLAKE2b-256 e0d448f218acdef6e9d06284140face8abaa8256be95992c45907833c0bf5446

See more details on using hashes here.

Provenance

The following attestation bundles were made for furlang2p-0.0.4.tar.gz:

Publisher: release.yml on daurmax/FurlanG2P

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file furlang2p-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: furlang2p-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 22.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for furlang2p-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 32ff0b742e483279cb9327261d6a0c6307177fdc4263f37e5b52f43af726d85b
MD5 5bea516c7276f6e533b7fccb69492ebb
BLAKE2b-256 42c8587360494229409ad06c3a231840c01fa41f91692c61ae0d54ca00f70c6e

See more details on using hashes here.

Provenance

The following attestation bundles were made for furlang2p-0.0.4-py3-none-any.whl:

Publisher: release.yml on daurmax/FurlanG2P

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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