Skip to main content

IBITTokenizer

Simple persian text-tokenizer base on tokenizers lib

install

pip install IBITTokenizer --upgrade

import

from IBITTokenizer.tokenizer import IBITTokenizer

usage

ibit_tokenizer = IBITTokenizer()
tokenizer = ibit_tokenizer.huggingface_tokenizer()

text = "سلام خوبی"

encoded = ibit_tokenizer.encode(text)
decoded = ibit_tokenizer.decode(encoded.ids)
tokenized = ibit_tokenizer.tokenize(text)

print(encoded)
print(decoded)
print(tokenized)

Release files for IBITTokenizer 0.0.2

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

Source distribution (sdist)

Source distribution for IBITTokenizer 0.0.2
File Size Uploaded
IBITTokenizer-0.0.2.tar.gz 356.1 kB Details

Built distribution (wheel)

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

Total release size: 721.1 kB

Release files / IBITTokenizer-0.0.2.tar.gz

Download URL IBITTokenizer-0.0.2.tar.gz
Size 356.1 kB
Tags Source
SHA-256 checksum
How to use checksums
3cdb5f5c3643320a981bee1bf7ea2826a2fb4160fe45b849ce2c0ad3e6a13488
BLAKE2b-256 checksum
How to use checksums
f98ab478cd41603b2dd513ed01bf651af1c44bab6e42c34d16ee9801504cc0a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.2

Release files / IBITTokenizer-0.0.2-py3-none-any.whl

Download URL IBITTokenizer-0.0.2-py3-none-any.whl
Size 365.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9794446823f5f9b520ec3ead4519a544b0d32c8a8c1f54a18c42d2dcd32b1b52
BLAKE2b-256 checksum
How to use checksums
7abb729f6df37de60a9d3d8986353a5befd5a8e22f015537e7dbeb98e67de50e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.2

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

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