A software that parses over the existing lttoolbox format and generates the corresponding monolingual dictionary in lttoolbox format. The package is modular and is user-friendly with proper help message and usage instructions. This was done as a part of coding challenge for the project Extend lttoolbox to have the power of HFST
.
If you are a user and are simply looking to install the package, just type the command given below in your terminal window.
$ pip3 install lexc2dix
To get proper usage instructions for the package, type the command given below.
$ lexc2dix -e
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
$ git clone https://github.com/Techievena/lexc2dix.git
$ cd lexc2dix
$ pip3 install -r requirements.txt
$ pip3 install -r test-requirements.txt
$ python3 setup.py install
$ lexc2dix --help
usage: lexc2dix [-h] [-e] [-v] [filename]
lexc2dix
positional arguments:
filename
optional arguments:
-h, --help show this help message and exit
-e
-v, --version
$ lexc2dix tests/test_files/apertium-kaz.kaz.lexc
- regex 2018.02.21 (Python 3)
The lexc2dix module is expected to function as follows:
- Parses over the lexc files.
- Stores them in form of python dictionaries.
- Generates the monolingual dictionary files.
The work flow is the same as that of any other repository.
1.Fork / clone the repository.
2.Create a new branch , say my-changes
and make your changes in this branch.
3.Commit your changes and send a Pull request (PR) to this repository.
Active contributors would be rewarded with the tag of "Collabrators".
Bug fixes , Issues , Issue solutions , Optimizations & Enhancements are always welcome.
The GNU GENERAL PUBLIC LICENSE - Abinash Senapati - All Rights Reserved.
I would like to thank mentors at Apertium for helping me with the development and maintenance of this package.