Metadata-Version: 2.1
Name: iranlowo
Version: 0.0.8.3
Summary: Utility library for analysis & (pre)processing of Yorùbá text
Home-page: https://github.com/Niger-Volta-LTI/iranlowo
Author: Ruoho Ruotsi
Author-email: ruoho.ruotsi@gmail.com
License: MIT
Download-URL: https://github.com/Niger-Volta-LTI/iranlowo/archive/v0.0.8.3.tar.gz
Description: # Ìrànlọ́wọ́
        [![Build Status](https://travis-ci.org/Niger-Volta-LTI/iranlowo.svg?branch=master)](https://travis-ci.org/Niger-Volta-LTI/iranlowo)
        [![PyPI](https://img.shields.io/pypi/v/iranlowo.svg)](https://pypi.org/project/iranlowo)
        ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/iranlowo.svg)
        [![License](https://black.readthedocs.io/en/stable/_static/license.svg)](https://github.com/ruohoruotsi/iranlowo/blob/master/LICENSE)
        [![Style](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)
        
        Ìrànlọ́wọ́ is a set of utilities to analyze &amp; process Yorùbá text for NLP tasks. The focus is on *helping software developers* build large, clean text datasets for (further) diacritic restoration and machine translation tasks.
        
        ## Features
        
        ### ADR tools
        * [X] Strip all diacritics from word-types
        * [X] Verify that text is NFC or NFD
        * [X] Normalize a corpus (from MS Word or elsewhere) &rarr; NFC
        * [X] Split long sentences on certain characters like `;`,`:`, etc
        * [X] Automatically restore correct diacritics using a pre-trained model
        * [X] Find all variants of all word-type in a given corpus
        * [ ] Partially strip diacritics from word-types
        
        ### Ready to use webpage scrapers
        * [X] Bíbélì Mímọ́  (Biblica, Bible Society of Nigeria)
        * [ ] Yorùbá Blog
        * [ ] BBC Yorùbá
        
        ### Corpus analysis tools
        * [X] Dataset character distribution
        * [X] Dataset ambuiguity statistics &rarr; Lexdif, etc for a given corpus
        * [ ] Dataset scoring (proximity to correctly diacritized text, LM perplexity, KL divergence)
        
        ## Installation
        Obtainable from the [Python Package Index (PyPI)](https://pypi.org/project/iranlowo/) &rarr;  `pip install iranlowo`
        
        ## Example
        
        * Show computing environment and installation process
        
        <img src="https://raw.githubusercontent.com/ruohoruotsi/iranlowo/master/docs/install.gif" width="700">
        
        * Diacritize a phrase
        ```
        $ python
        Python 3.7.3 (default, Mar 27 2019, 16:54:48)
        [Clang 4.0.1 (tags/RELEASE_401/final)] :: Anaconda, Inc. on darwin
        Type "help", "copyright", "credits" or "license" for more information.
        >>> import iranlowo.adr as ránlọ
        >>> ránlọ.diacritize_text("lootoo ni pe ojo gbogbo ni ti ole")
        PRED AVG SCORE: -0.0037, PRED PPL: 1.0037
        'lóòtóọ́ ni pé ọjọ́ gbogbo ni ti olè' 
        ```
        
        * Diacritize phrases, note we use `ipython` only because it renders nicer, easy-to-read text-colours in the terminal!
        
        <img src="https://raw.githubusercontent.com/ruohoruotsi/iranlowo/master/docs/adr.gif" width="700">
        
        ## Disclaimer
        
        This is beta software, if you pass the diacritizer [out-of-domain text](https://www.quora.com/What-is-in-domain-out-domain-and-open-domain-data), English, pidgin or any other non-Yorùbá text, you will experience very marvelous, black-box results. 
        
        Since this a work-in-progress and we are steadily improving, if you encounter any problems with correctness or performance, please submit [pull-requests](https://github.com/ruohoruotsi/iranlowo/pulls) with corrections or file an [issue](https://github.com/ruohoruotsi/iranlowo/issues).
        
        ## License
         
        This project is licensed under the [MIT License](https://opensource.org/licenses/MIT).
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: POSIX
Classifier: Operating System :: Unix
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Topic :: Software Development
Classifier: Topic :: Utilities
Description-Content-Type: text/markdown
