Skip to main content

No project description provided

Project description

Bangla Lemmatizer (BnLemma)

BnLemma is a powerful tool for getting the root words of the words used in any Bangla sentence. There is a pretrained model available with this package. This page gives a basic introduction to the package.

Installation:

pip install BnLemma

In Python a BnLemma is typically written as:

Usage:

>>>  import BnLemma as lm
>>>  s = "মানুষের জীবনটা পাচ্ছেন তাই কাজে লাগানো দরকার আমাদেরকে"  
>>>  bl = lm.Lemmatizer()
>>>  s = bl.lemma(s)
>>>  print(s)

Output:

মানুষ জীবন পাওয়া তাই কাজ লাগা দরকার আমাদের

If you want to use your own Root Word List/Word Mapping just load it while initiaizing thw BnLemma class

Usage:

>>>  import BnLemma as lm
>>>  s = "মানুষের জীবনটা পাচ্ছেন তাই কাজে লাগানো দরকার আমাদেরকে"  
>>>  bl = lm.Lemmatizer(root_file='root.txt', mapping_file='map.txt')
>>>  s = bl.lemma(s)
>>>  print(s)

Output:

মানুষ জীবন পাওয়া তাই কাজ লাগা দরকার আমাদের

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

BnLemma-2.0-py3-none-any.whl (57.6 kB view details)

Uploaded Python 3

File details

Details for the file BnLemma-2.0-py3-none-any.whl.

File metadata

  • Download URL: BnLemma-2.0-py3-none-any.whl
  • Upload date:
  • Size: 57.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.21.0 setuptools/42.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.5

File hashes

Hashes for BnLemma-2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d5ee61239440c01d3efd28714c5b66358d3384cab40f93ea63f79d74ed24bdb9
MD5 95a4bd8693180f1b5530063af9e7a8d3
BLAKE2b-256 030ab1931b1d12569c973929d44bbdc9906ca70cf4b20e14ec311a105bc50ed2

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