Skip to main content

Amharic language tokenizers

Project description

<h1>Amharic Language Tokenizers</h1>

This package contains set of Classes which can be used to encode Amharic language sentences into tokens that could be used by language models. The tokenizers are trained using [Contemporary Amharic Corpus (CACO)](https://www.findke.ovgu.de/findke/en/Research/Data+Sets/Contemporary+Amharic+Corpus+%28CACO%29-p-1142.html) dataset

<h2>Installing using pip</h2> The package can be installed from test.pypi using the following command. <code> pip install -i https://test.pypi.org/simple/ amtokenizers==0.0.1 </code>

<h2>Example usage</h2>

<code> from amtokenizers import AmTokenizer

a = AmTokenizer(10000, 5 , “byte_bpe”) encoded = a.encode(“አበበ በሶ በላ።”, return_tokens=False) print(“encoded”, encoded.tokens) print(“decoded:”, a.decode(encoded.ids)) </code>

<h2>Disclaimer</h2>

This package is highly inspired by Hugging Face’s [How to train a new language model from scratch using Transformers and Tokenizers](https://huggingface.co/blog/how-to-train) tutorial.

# Amharic Langugae Tokenizers

This package contains set of Classes which can be used to encode Amharic language sentences into tokens that could be used by language models. The tokenizers are trained using [Contemporary Amharic Corpus (CACO)](https://www.findke.ovgu.de/findke/en/Research/Data+Sets/Contemporary+Amharic+Corpus+%28CACO%29-p-1142.html) dataset

## Installing

#### Pip installation

`bash pip install -i https://test.pypi.org/simple/ amtokenizers==0.0.5 `

## Sample Code

`python # toolchain (g++, make) is very likely installed along Xcode, just install cmake and pkg-config using homebrew print("Hello world") `

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

amtokenizers-0.0.6-py3-none-any.whl (8.4 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page