masakhane-io / masakhanepreprocessor Goto Github PK
View Code? Open in Web Editor NEWBuilding an effective preprocessing tool for African languages
Building an effective preprocessing tool for African languages
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ọ.
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')
We need to compile this into a package so that people can easily use it with a pip install or python setup.py
See here for more background on unicode and normalization
Find a way to do regex for these characters that still compose into characters + accent....like below
One idea:
Could do regex preprocessing in 2 steps using example ɛ̃
:
Language: Fon
Lang code: fon
allowed_symbols: ['à', 'á', 'è', 'é', 'ì', 'í', 'î', 'ï', 'ó', 'ù', 'ú', 'ā', 'ă', 'ē', 'ĕ', 'ŏ', 'ū', 'ŭ', 'ɔ', 'ɖ', 'ò', 'ε', 'έ', 'ɔ̀', 'ɔ̆', 'ὲ', 'ɔ́', 'ĭ', 'ɛ̆', 'ɛ̃']
diacritics: True
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.