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
Installation
pip install indic_unified_parser
How to use
from indic_unified_parser import uparser
parsed_output_string = wordparse(<word : str>, <lsflag : int>, <wfflag : int>, <clearflag : int>)
lsflag: always 0. Deprecated.wfflag: 0 for Monophone parsing, 1 for syllable parsing, 2 for Akshara Parsing"clearflag: 1 for removing the lisp like format of output and to just produce space separated output. Otherwise, 0.
Examples
URLS
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file indic_unified_parser-1.0.2.tar.gz.
File metadata
- Download URL: indic_unified_parser-1.0.2.tar.gz
- Upload date:
- Size: 38.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b8b433b543268d5540e1cbda6e6b1e638f40adfcc1210f4a44deec0dbe009aac
|
|
| MD5 |
8b9b2b4dfcf992dd82b45ced3e41d39c
|
|
| BLAKE2b-256 |
926bb78d18e7ccb2d7c2f6a53ad74979a97231a993592503b323914f8d3ff076
|
File details
Details for the file indic_unified_parser-1.0.2-py3-none-any.whl.
File metadata
- Download URL: indic_unified_parser-1.0.2-py3-none-any.whl
- Upload date:
- Size: 38.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c1d546630abbd38d96ebf1ca015f3e23a791d03e39b3a4fee49c90328848c697
|
|
| MD5 |
c984f22fd62eebf83a1f280eef226681
|
|
| BLAKE2b-256 |
8bfb2ac906fc7cf28c31620de8da04216e39f5c26bb54be32e414fd4d8da9b26
|