bhasa
Installation
You can install bhasa with pip:
$ pip install bhasa
You can test the installation in Python console:
>>> import bhasa >>> print bhasa.smile()
Features
- Spelling
We are currently using Peter Norvig's article as a reference. But since it's using English, we'll update it to Bahasa soon. Usage:
>>> from bhasa.spell import correction >>> correction('typwriter') 'typewriter'
Development
-
Clone this repository:
$ git clone https://github.com/hanmajid/bhasa.git bhasa
-
Go into the folder:
$ cd bhasa
-
We recommend using Miniconda for package manager. Download and install Miniconda on your computer, and create a new environment:
$ conda env create -f environment.yml
-
Activate the environment:
# Linux/Mac OS $ source activate bhasa_env # Windows $ activate bhasa_env
Testing
We use coverage for testing. You can run test with:
$ coverage run bhasa/tests/tests.py