Package for Bodo Tokenizer
Project description
Bodo Tokenizer
About:
Bodo is one of the scheduled languages of India and belongs to the Tibeto-Burman branch of the Sino-Tibetan language family. It uses a Devanagari script like other Indian languages such as Hindi, Konkani, Maithili, Marathi, Nepali, Sanskrit, Sindhi, and Dogri. However there are some differences, this python library tokenizes Bodo sentences into its tokens that is useful for NLP tasks.
Prerequisite:
Python 3.6+
Installation:
From source
git clone https://github.com/bodonlp/bodo-tokenizer.git
cd bodo-tokenizer
python setup.py install
or
pip install bodotokenizer
Available functions:
# Tokenize single sentence
from bodotokenizer import tokenize
tokenize(sentence)
# Tokenize sentences from a file
# Suitable for tokenize sentences in parallel corpus
from bodotokenizer import tokenize_file
tokenize_file(input_file, out_file)
Usage:
from bodotokenizer import tokenize
sentence = "नोंसिनि फरायसालियाव य'गा फोरोंगुरु दङ नामा?"
tokenized_sentence = tokenize(sentence)
# Output: Tokenized Sentence
# "नोंसिनि फरायसालियाव य'गा फोरोंगुरु दङ नामा ?"
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bodotokenizer-0.1.1.tar.gz.
File metadata
- Download URL: bodotokenizer-0.1.1.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.62.3 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6797f661ae1d3add56b80ca51d32fb93bf0e0deace6f1534f5080c620eeb45f7
|
|
| MD5 |
d17b4630e5047adae5ba607391fefe11
|
|
| BLAKE2b-256 |
4667e1c81085dd9f964ecf9faa7ec10fb0ff27c5eb9ae7109ef69bd8dc951222
|
File details
Details for the file bodotokenizer-0.1.1-py3-none-any.whl.
File metadata
- Download URL: bodotokenizer-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.62.3 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
477ec053c2fe6974f71409e89cd1a7a3b0a5777a3f266d310bbc28e1fe63019a
|
|
| MD5 |
b43c8c2427f1f880e4d867653abc1ec3
|
|
| BLAKE2b-256 |
8b5bb6b639dcb59d771f6a6292fba63309f4323003570532fc8e41c70eb77f8e
|