This package can be used to detect, produce Nepali caste.
Project description
Nepali Thar
This is a simple Nepali Thar package. This package can be used to generate list of Nepali surnames and detect them.
Features:
- Split name based on surname.
- Detects the position of Nepali Surname in a text.
- Checks if the words is Nepali Surname or not.
- Gives a list of Nepali Surname's.
How to Import
>>> import nepalithar
>>> thar = nepalithar.Caste()
Check Nepali Surname
>> thar.is_true("Rajesh")
False
>>> thar.is_true("Hamal")
True
Get Random n number of Surname
>> thar.get(3)
['Kutal', 'Shrestha', 'Rapacha']
Get Position of Surname in a text
>> thar.get_position("Rajesh Hamal Madhu Bhattarai")
[1, 3]
Detect Position along with surname
>> thar.detect('Rajesh Hamal Madhu Bhattarai')
[(1, 'Hamal'), (3, 'Bhattarai')]
Split a group of name based on surname
>> thar.split_name("Rajesh Hamal Madhu Bhattarai")
['Rajesh Hamal', 'Madhu Bhattarai']
References:
- Nepali Thar Dataset : https://github.com/amitness/thar
Others:
- Note: Package created during COVID-19 quarantine out-of-boredom.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nepalithar-0.0.1.tar.gz
(15.4 kB
view hashes)
Built Distribution
nepalithar-0.0.1-py3-none-any.whl
(28.7 kB
view hashes)
Close
Hashes for nepalithar-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 063a9c3648324e8db80b436277bd6116b08f818786f86873c0467be0b2b5471e |
|
MD5 | 9c0e6b9310d8ed3f4813ea73ec8f70ba |
|
BLAKE2b-256 | d4ffd5e8daa91da6339d35d3a6f6bd05c7f7fec86bd9396f38cbd3be1ed453ba |