Code Monkey home page Code Monkey logo

lexc2dix's Introduction

lexc2dix

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.

INSTALLATION

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

GETTING STARTED

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.

CLONE THE REPOSITORY

$ git clone https://github.com/Techievena/lexc2dix.git
$ cd lexc2dix

INSTALL PREREQUISITES

$ pip3 install -r requirements.txt
$ pip3 install -r test-requirements.txt

INSTALL THE PACKAGE

$ python3 setup.py install

USAGE

$ 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

EXTERNAL LIBRARIES USED

  • regex 2018.02.21 (Python 3)

CAPABILITIES AND POSSIBILITIES

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.

CONTRIBUTION

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.

LICENSE

The GNU GENERAL PUBLIC LICENSE - Abinash Senapati - All Rights Reserved.

ACKNOWLEDGEMENTS

I would like to thank mentors at Apertium for helping me with the development and maintenance of this package.

lexc2dix's People

Contributors

techievena avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

lexc2dix's Issues

Spaces in lexc ('% ') have to be converted to '<b/>' in dix

Current output of 'lexc2dix apertium-kaz.kaz.lexc' is:

        <e lm="анықтап қара">
                <p>
                        <l>анықтап қара</l>
                        <r>а</r>
                </p>
                <par n="V-TV"/>
        </e>

But should be:

        <e lm="анықтап қара">
                <p>
                        <l>анықтап<b/>қара</l>
                        <r>анықтап<b/>қара</r>
                </p>
                <par n="V-TV"/>
        </e>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.