Skip to content

libindic/ucasort

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

LibIndic ucasort

Build Status Coverage Status

LibIndic's ucasort module lets you sort words based on their linguistics.

Installation

  1. Clone the repository git clone https://github.com/libindic/ucasort.git
  2. Change to the cloned directory cd ucasort
  3. Run setup.py to create installable source python setup.py sdist
  4. Install using pip pip install dist/libindic-ucasort*.tar.gz

Usage

>>> from libindic.ucasort import Sort
>>> instance = Sort()
>>> result = instance.sort(u"കർത്തവ്യം അംബരീക്ഷൻ കൃത്യനിഷ്ഠ ശാപം ക്ഷമ സോമൻ ഷീല")
>>> for word in result['UCA']:
...     print(word)
...
അംബരീക്ഷൻ
കർത്തവ്യം
കൃത്യനിഷ്ഠ
ക്ഷമ
ശാപം
ഷീല
സോമൻ

Tests

Run tests with python setup.py test

About

Module to sort words basded on linguistics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published