Skip to main content
https://raw.githubusercontent.com/partdpai/PartNLP/master/images/PartAiLogo.png

PartNLP Project

Overview

documentation

This documentation is all about PartNLP package. PartNLP designs to help developers to perprocessing their text automatically! Also it has many useful features that makes perprocessing more fun! However, This is not an exhaustive description but it should show you how use the package effortlessly.

Introduction

PartNLP is an integrated package uses many famous packages. Moreover, PartNLP supports multi languages. In the below table you can see all valid operations accomplishing by PartNLP and their corresponder packages.

Operations

Keyword

Packages

normalize

NORMALIZE

HAZM, PARSIVAR

sent tokenize

S_TOKENIZE

HAZM, PARSIVAR, STANZA

word tokenize

W_TOKENIZE

HAZM, PARSIVAR, STANZA

lemmatize

LEMMATIZE

HAZM, STANZA

stem

STEM

HAZM, PARSIVAR, STANZA

Installation

for installing, you can simply use pip to install the package.

>>> pip install PartNLP

Pipeline Usage Example

>>> from PartNLP import Pipeline

>>> Pipeline(lang='persian', package='hazm', processors=['W_TOKENIZE', 'LEMMATIZE'], text='این متن، جهت بررسی عملکرد بسته نوشته شده است')

Output of Hazm word tokenizer:
['این', 'متن', '،', 'جهت', 'بررسی', 'عملکرد', 'بسته', 'نوشته_شده_است']
Output of Hazm Lemmatizer :
['این', 'متن', '،', 'جهت', 'بررسی', 'عملکرد', 'بسته', 'نویس']

Pipeline also can handle missing required data in which should be passed by users. In the below example no package, language or processors entered but Pipeline asks you to fill them out.

 >>> Pipeline(text='این متن، جهت بررسی عملکرد بسته نوشته شده است')
‌Warning: no package selected. ‌List of supported packages:['HAZM', 'PARSIVAR', 'STANZA']
please enter a valid value: 'hazm'
‌Warning: no language selected. ‌List of supported languages:['ENGLISH', 'PERSIAN']
please enter a valid value: 'persian'
‌Warning: no operator selected. ‌List of supported operations for 'hazm' package :['NORMALIZE', 'S_TOKENIZE', 'STEM', 'W_TOKENIZE', 'LEMMATIZE']

Interface Usage Example

In this section we are going to see the simple usage of PartNLP package.

https://raw.githubusercontent.com/partdpai/PartNLP/master/images/Interface.gif

Metadata

Release files for PartNLP 0.1.34

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PartNLP 0.1.34
File Size Uploaded Provenance Actions
PartNLP-0.1.34.tar.gz 18.2 kB Without provenance Details for PartNLP-0.1.34.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for PartNLP 0.1.34
File Interpreter ABI Platform Actions
PartNLP-0.1.34-py3-none-any.whl Python 3 none any Details for PartNLP-0.1.34-py3-none-any.whl

Total release size: 58.5 kB

Release files / PartNLP-0.1.34.tar.gz

Download URL PartNLP-0.1.34.tar.gz
Size 18.2 kB
Tags Source
SHA-256 checksum
How to use checksums
84c1e5e40ab280aebb4e89fbe616150d86a00dbc28d31bae3467aebc8a988b78
BLAKE2b-256 checksum
How to use checksums
6b5625eff521f5f2620830a92f1321e10cd445dfb9046de23cc0a18162fac11c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

Release files / PartNLP-0.1.34-py3-none-any.whl

Download URL PartNLP-0.1.34-py3-none-any.whl
Size 40.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c397a0e9ff87c5d0e458da5d86a29ce05457d5d1cb4d7cbb256f4a5e4fff3d26
BLAKE2b-256 checksum
How to use checksums
38f366b9fe00eebb795cd74be8821dc46c2f0a96bc3b352678ff4ba88e0d6542
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

Security for PartNLP 0.1.34

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.34 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page