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

License

This project is licensed under the Creative Commons Attribution-NonCommercial 4.0 International License.

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.5.tar.gz (29.7 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.5-py3-none-any.whl (35.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: furlang2p-0.0.5.tar.gz
  • Upload date:
  • Size: 29.7 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.5.tar.gz
Algorithm Hash digest
SHA256 e913eba872fb3b77be87595d51266beb1706a95ce1717dd70a076c041c33d662
MD5 a230e016b095c3bb6a5fcaeec6f4603d
BLAKE2b-256 2dad11cab891bcd25d712f7dd137624c535578dc45e32499b9b2b8e6caf272da

See more details on using hashes here.

Provenance

The following attestation bundles were made for furlang2p-0.0.5.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.5-py3-none-any.whl.

File metadata

  • Download URL: furlang2p-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 35.3 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 68cf4993cc224153cb6e9f0018504c37651b0c2927cc55e034fa0cf51f50ae91
MD5 b68de36ae66ba89f6be9e60851c79fc3
BLAKE2b-256 f2e2a05b13a04e0207b215de55701ce258b5ec034904967c73c6fd4d9f731d7d

See more details on using hashes here.

Provenance

The following attestation bundles were made for furlang2p-0.0.5-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