Skip to main content

The Unified Parser unifies Indian languages using a common label set and syllable structure. It converts text to a common label set, generates phoneme sequences and improves natural language understanding in Indian languages. The method requires basic language knowledge and can achieve more than 95% accuracy with good lexicons. New Indian language parsers can be easily developed using this unified approach.

Project description

Python_Unified_Parser

This parser attempts to unify the languages based on the Common Label Set. It is designed across all the languages capitalising on the syllable structure of Indian languages. The Unified Parser converts UTF-8 text to common label set, applies letter-to-sound rules and generates the corresponding phoneme sequences. The effort is a step towards natural language understanding system that operates on Indian languages and generates the parsed output. This structured method requires only knowledge of the basic language. With good lexicons it is possible to get more than 95% correctness of words in a language. This method can be further extended for a number of other Indian languages in minimal time and effort. Given the unity in the diversity of Indian languages, developing parsers for new languages is easy using the unified approach.

Our python parser - uparser.py - Combines lex and yacc functionality in a single python script using the PLY framework.

Publications

Baby, Arun, et al. "A unified parser for developing Indian language text to speech synthesizers." Text, Speech, and Dialogue: 19th International Conference, TSD 2016, Brno, Czech Republic, September 12-16, 2016, Proceedings 19. Springer International Publishing, 2016.

Installation

pip install indic_unified_parser

How to use

from indic_unified_parser import uparser
parsed_output_string = uparser.wordparse(<word : str>, <lsflag : int>, <wfflag : int>, <clearflag : int>)
  1. lsflag: always 0. Deprecated.
  2. wfflag: 0 for Monophone parsing, 1 for syllable parsing, 2 for Akshara Parsing"
  3. clearflag: 1 for removing the lisp like format of output and to just produce space separated output. Otherwise, 0.

Examples

URLS

Homepage

Authors

Vikram K V, Dual Degree, Computer Science Dept, IIT Madras.

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

indic_unified_parser-1.0.0.tar.gz (40.3 kB view details)

Uploaded Source

Built Distribution

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

indic_unified_parser-1.0.0-py3-none-any.whl (40.2 kB view details)

Uploaded Python 3

File details

Details for the file indic_unified_parser-1.0.0.tar.gz.

File metadata

  • Download URL: indic_unified_parser-1.0.0.tar.gz
  • Upload date:
  • Size: 40.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for indic_unified_parser-1.0.0.tar.gz
Algorithm Hash digest
SHA256 5c5300815a7f41523a5c59cc0f7d2c77f66b1c28452c39e1571c7e36a95a9896
MD5 ebe93882a9e2e3f49cf268583f1ef162
BLAKE2b-256 f860b30afc94cc9cabfb6f88103b46ff92518236613b78c38ff7475b167eb463

See more details on using hashes here.

File details

Details for the file indic_unified_parser-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for indic_unified_parser-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 401fc7182b7311441c80b7d640890888eed219d953ba6fb8fa369e67fa7dc4da
MD5 0f71db4cbe509544c5b73b14313766a8
BLAKE2b-256 c1cde953f956ea9f03bd82083c651f4b68d27ba124d887b9cb924918d1157170

See more details on using hashes here.

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