punjabi-stopwords


Namepunjabi-stopwords JSON
Version 1.0.0 PyPI version JSON
download
home_pagehttps://github.com/gurpejsingh13/Punjabi_Stopwords.git
SummaryA Python library for Punjabi language stopwords.
upload_time2023-12-07 18:32:02
maintainer
docs_urlNone
authorGurpej Singh
requires_python>=3.7
licenseMIT
keywords stopwords punjabi nlp punjabi language natural language processing
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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:
1. Identifying Punjabi stopwords in text.
2. Removing Punjabi stopwords from text.
3. Adding custom stopwords to the existing list.

### Install the Package

You can install punjabi_stopwords directly from PyPI

## Installation

Install `punjabi_stopwords` using pip:

```python
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

```python
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

```python
from punjabi_stopwords import remove_stopwords

sample_text = 'ਇਹ ਇੱਕ ਉਦਾਹਰਣ ਵਾਕ ਹੈ।'
filtered_text = remove_stopwords(sample_text)
print(filtered_text)
```
Output
```
ਉਦਾਹਰਣ ਵਾਕ
```
## Add additional stopwords

```python
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.



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/gurpejsingh13/Punjabi_Stopwords.git",
    "name": "punjabi-stopwords",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "stopwords,punjabi,nlp,punjabi language,natural language processing",
    "author": "Gurpej Singh",
    "author_email": "gurpejsingh462@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/e1/f5/42f3f05b957471559c7078ce3c070841a9534803478202806180b25b0e44/punjabi_stopwords-1.0.0.tar.gz",
    "platform": null,
    "description": "# Punjabi Stopwords Library\n\nThe `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.\n\n## Main Features\n\nThe punjabi_stopwords package offers several functionalities, including:\n1. Identifying Punjabi stopwords in text.\n2. Removing Punjabi stopwords from text.\n3. Adding custom stopwords to the existing list.\n\n### Install the Package\n\nYou can install punjabi_stopwords directly from PyPI\n\n## Installation\n\nInstall `punjabi_stopwords` using pip:\n\n```python\npip install punjabi_stopwords\n```\n# Usage\nHere's how to use the punjabi_stopwords library in your Python projects:\n\n## Check if a word is a stopword\n\n```python\nfrom punjabi_stopwords import is_stopword\n\nword = '\u0a07\u0a38'\nprint(is_stopword(word))  # Returns: True if the word is a stopword, False otherwise\n\n```\nOutput\n```\nTrue\n```\n## Remove stopwords from text\n\n```python\nfrom punjabi_stopwords import remove_stopwords\n\nsample_text = '\u0a07\u0a39 \u0a07\u0a71\u0a15 \u0a09\u0a26\u0a3e\u0a39\u0a30\u0a23 \u0a35\u0a3e\u0a15 \u0a39\u0a48\u0964'\nfiltered_text = remove_stopwords(sample_text)\nprint(filtered_text)\n```\nOutput\n```\n\u0a09\u0a26\u0a3e\u0a39\u0a30\u0a23 \u0a35\u0a3e\u0a15\n```\n## Add additional stopwords\n\n```python\nfrom punjabi_stopwords import add_stopwords\n\nadditional_stopwords = ['\u0a28\u0a35\u0a3e\u0a02\u0a38\u0a1f\u0a3e\u0a2a\u0a35\u0a30\u0a211', '\u0a28\u0a35\u0a3e\u0a02\u0a38\u0a1f\u0a3e\u0a2a\u0a35\u0a30\u0a212']\nadd_stopwords(additional_stopwords)\n```\n\n## Contributing\nContributions to punjabi_stopwords are welcome! If you have suggestions for additional stopwords, or improvements to the existing list, please feel free to contribute.\n\n## License\nThis project is licensed under the MIT License - see the LICENSE file for details.\n\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A Python library for Punjabi language stopwords.",
    "version": "1.0.0",
    "project_urls": {
        "Homepage": "https://github.com/gurpejsingh13/Punjabi_Stopwords.git"
    },
    "split_keywords": [
        "stopwords",
        "punjabi",
        "nlp",
        "punjabi language",
        "natural language processing"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ef7234f85b5855615c6bcbd5d03250bf33f9aedb289f5485c90e6d67a941a8f2",
                "md5": "0c4672e63cf83c3f42d026ae28714e66",
                "sha256": "96b40554a73b4d6bf7fabb89eba0f5d094d9b84dafa56216cc9f594380f54b13"
            },
            "downloads": -1,
            "filename": "punjabi_stopwords-1.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0c4672e63cf83c3f42d026ae28714e66",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 4447,
            "upload_time": "2023-12-07T18:31:58",
            "upload_time_iso_8601": "2023-12-07T18:31:58.571775Z",
            "url": "https://files.pythonhosted.org/packages/ef/72/34f85b5855615c6bcbd5d03250bf33f9aedb289f5485c90e6d67a941a8f2/punjabi_stopwords-1.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e1f542f3f05b957471559c7078ce3c070841a9534803478202806180b25b0e44",
                "md5": "afaa63c1e7ab7876f16e4241b6a52609",
                "sha256": "db8e868505b1480a11027652c4bb007f910aebcf6ed55e889f272b9ebb24620f"
            },
            "downloads": -1,
            "filename": "punjabi_stopwords-1.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "afaa63c1e7ab7876f16e4241b6a52609",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 4306,
            "upload_time": "2023-12-07T18:32:02",
            "upload_time_iso_8601": "2023-12-07T18:32:02.057513Z",
            "url": "https://files.pythonhosted.org/packages/e1/f5/42f3f05b957471559c7078ce3c070841a9534803478202806180b25b0e44/punjabi_stopwords-1.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-07 18:32:02",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "gurpejsingh13",
    "github_project": "Punjabi_Stopwords",
    "github_not_found": true,
    "lcname": "punjabi-stopwords"
}
        
Elapsed time: 0.72298s