Skip to main content

This library is designed to tokenize Persian texts.

Project description

کتابخانه Tokenize برای زبان فارسی

این کتابخانه بخشی از پروژه NLP است که با استفاده از آن میتوان یک متن فارسی را به جملات خاص تقسیم و جملات را به کلمات تقسیم کرد..

نصب

برای نصب این کتابخانه کافیه از دستور زیر استفاده کنید:

pip install nlp-persian-text-tokenize-snd==0.1.1

نحوه پیاده‌سازی

برای استفاده از کتابخانه، می‌توانید از کد نمونه زیر استفاده کنید:

# -*- coding: utf-8 -*-
from pht.tokenizer.TokenizerManager import TokenizerManager

content = 'این یک متن تست فارسی است. آیا درست کار میکند؟ بیاید ببینیم!'
sen = TokenizerManager(content)
print(sen.tokenizing())

Project details


Download files

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

Source Distribution

nlp_persian_text_tokenize_snd-0.1.1.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

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

nlp_persian_text_tokenize_snd-0.1.1-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file nlp_persian_text_tokenize_snd-0.1.1.tar.gz.

File metadata

File hashes

Hashes for nlp_persian_text_tokenize_snd-0.1.1.tar.gz
Algorithm Hash digest
SHA256 35db67372601bcb895c03b78460d8354545a86b6e089e29e0db0bd0e1f2e89d7
MD5 c2b878fb73516cb0fd732ddd8266804f
BLAKE2b-256 feb0b38b416a0a760fcd6329c50088810f4423a63102dcd96d8ba279649fcded

See more details on using hashes here.

File details

Details for the file nlp_persian_text_tokenize_snd-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for nlp_persian_text_tokenize_snd-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cd2f658a6b48449f74aaeae6616b9edada18af1a0a94afed286772635f47a049
MD5 4b30cb6f156efef6e1c58d05f40b6715
BLAKE2b-256 1dfa9d2482c5b29a2425121274da03527b74c05e3dc0fdf5de071548d66d8a42

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