Skip to main content

Extract root from a Malayalam word

Project description

Root Extractor Module for Malayalam

Extracting root of a word is vital in the preprocessing stage of most Language processing systems for Malayalam. The root extraction module can derive the root of any given words regardless of the number of suffixes or words attached with the stem.

Requirement

Python3

Installation

You may create a virtual environment for installing the package.

python -m venv ENV_DIR
source ENV_DIR/bin/activate

and install the root extractor

pip install root-pack

Otherwise, use

pip install --user root-pack

Implementation method

After installation, you can import the module to utilize the root() function

import root_pack
root_pack.root(wordi)

The above code will output the root of the input word wordi. The input word must be given in Malayalam.

For example,

if you need to find the root of the word "മകന്റെയുമാണെന്നാണ്", you may follow the below steps

import root_pack
root_pack.root("മകന്റെയുമാണെന്നാണ്")

Output:

മകന്‍

Advantages of the extractor

  1. Sandhi rules are taken into consideration
  2. Rules are generalized rather than explicitly specifying each in the code
  3. Recursive functions introduced and thus aids to strip any number of suffixes attached with ease
  4. Accuracy rate is quite high

Author

Jincy Baby

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

root_pack-1.1.1.tar.gz (353.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

root_pack-1.1.1-py3-none-any.whl (370.6 kB view details)

Uploaded Python 3

File details

Details for the file root_pack-1.1.1.tar.gz.

File metadata

  • Download URL: root_pack-1.1.1.tar.gz
  • Upload date:
  • Size: 353.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

File hashes

Hashes for root_pack-1.1.1.tar.gz
Algorithm Hash digest
SHA256 1591e30a1f3e15df18ec06cb117bb86d8f34005cca5c1ec410dbd44e3499ead7
MD5 3e190bc6bb0275f13200b8e612e2d03e
BLAKE2b-256 2c695cb2f1f08aaa929bb0956432e048715f67f7c44d2100b66b78e5c6d4e97a

See more details on using hashes here.

File details

Details for the file root_pack-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: root_pack-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 370.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

File hashes

Hashes for root_pack-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 31f276debce0e856d9e18ed89389fa01cdb812665a3b5b73fa2d45d6c2be9778
MD5 9546e49b2fc1b7f286c1309299d9c5a0
BLAKE2b-256 03249dc13524ec35c2552305d10f98256e2fcd4267060e24ce3b895bbcb8f2b4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page