A Python library for Punjabi language stopwords.
Project description
Punjabi Stopwords Library
The punjabi_stopwords
library is a Python package providing a collection of stopwords in the Punjabi language. Stopwords are words which are filtered out before processing natural language data. They are typically words that are very common in the language and do not contribute much to the meaning of a sentence, especially when performing tasks like text analysis or natural language processing.
Main Features
The punjabi_stopwords package offers several functionalities, including:
- Identifying Punjabi stopwords in text.
- Removing Punjabi stopwords from text.
- Adding custom stopwords to the existing list.
Install the Package
You can install punjabi_stopwords directly from PyPI
Installation
Install punjabi_stopwords
using pip:
pip install punjabi_stopwords
Usage
Here's how to use the punjabi_stopwords library in your Python projects:
Check if a word is a stopword
from punjabi_stopwords import is_stopword
word = 'ਇਸ'
print(is_stopword(word)) # Returns: True if the word is a stopword, False otherwise
Output
True
Remove stopwords from text
from punjabi_stopwords import remove_stopwords
sample_text = 'ਇਹ ਇੱਕ ਉਦਾਹਰਣ ਵਾਕ ਹੈ।'
filtered_text = remove_stopwords(sample_text)
print(filtered_text)
Output
ਉਦਾਹਰਣ ਵਾਕ
Add additional stopwords
from punjabi_stopwords import add_stopwords
additional_stopwords = ['ਨਵਾਂਸਟਾਪਵਰਡ1', 'ਨਵਾਂਸਟਾਪਵਰਡ2']
add_stopwords(additional_stopwords)
Contributing
Contributions to punjabi_stopwords are welcome! If you have suggestions for additional stopwords, or improvements to the existing list, please feel free to contribute.
License
This project is licensed under the MIT License - see the LICENSE file for details.
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
Built Distribution
File details
Details for the file punjabi_stopwords-1.0.0.tar.gz
.
File metadata
- Download URL: punjabi_stopwords-1.0.0.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | db8e868505b1480a11027652c4bb007f910aebcf6ed55e889f272b9ebb24620f |
|
MD5 | afaa63c1e7ab7876f16e4241b6a52609 |
|
BLAKE2b-256 | e1f542f3f05b957471559c7078ce3c070841a9534803478202806180b25b0e44 |
File details
Details for the file punjabi_stopwords-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: punjabi_stopwords-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96b40554a73b4d6bf7fabb89eba0f5d094d9b84dafa56216cc9f594380f54b13 |
|
MD5 | 0c4672e63cf83c3f42d026ae28714e66 |
|
BLAKE2b-256 | ef7234f85b5855615c6bcbd5d03250bf33f9aedb289f5485c90e6d67a941a8f2 |