Code Monkey home page Code Monkey logo

masakhanepreprocessor's People

Contributors

abdouaziz avatar abumafrim avatar andrews2017 avatar benaji avatar bonaventuredossou avatar cdleong avatar chrisemezue avatar csisc avatar davisy avatar edaiofficial avatar hhnigatu avatar sam4rano avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

masakhanepreprocessor's Issues

Adding rules for Igbo

Language: Igbo
Lang code: ig

Don't worry about language codes so much if you do not know. We will gladly take care of that.

allowed_symbols: ['.-]
diacritics: True
Example sentene to test: Dịka● ndọrọndọrọọchịchị maka ntuliaka ọkwa Gọvanọ Anambra steeti si na-aga nke afọ 2021, ndị nọ.

packaging

I have been compiled the package and now you can install with pip install masakhane-preprocessor .

But when I try to access the Preprocessor with the following code it still does not work.

from masakhane-preprocessor import Preprocessor

my_prep = Preprocessor(lang='ig')

compile into a package

We need to compile this into a package so that people can easily use it with a pip install or python setup.py

Work on normalization and better preprocessing for non-single characters after normalization

See here for more background on unicode and normalization

Note to Self

Find a way to do regex for these characters that still compose into characters + accent....like below
image

One idea:
Could do regex preprocessing in 2 steps using example ɛ̃:

  1. map the double characters to a random integer or char like RANDOMCHAR1.
  2. Do normal cleaning to remove punctuation and symbols.
  3. Then map RANDOMCHAR1 back to its original value, thus preserving it

Adding rules for Fon

Language: Fon
Lang code: fon

allowed_symbols: ['à', 'á', 'è', 'é', 'ì', 'í', 'î', 'ï', 'ó', 'ù', 'ú', 'ā', 'ă', 'ē', 'ĕ', 'ŏ', 'ū', 'ŭ', 'ɔ', 'ɖ', 'ò', 'ε', 'έ', 'ɔ̀', 'ɔ̆', 'ὲ', 'ɔ́', 'ĭ', 'ɛ̆', 'ɛ̃']
diacritics: True

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.