Skip to main content

A POS tagger for the Wolaita language using deep learning

Project description

Wolaita_POST

Overview

Wolaita_POST is a Python framework tailored for accurate Part-of-Speech (POS) tagging of the Wolaita language. Leveraging advanced deep learning models, including Bi-GRU and others, it integrates FastText embeddings to enhance tagging performance. The framework uses pretrained models, streamlining deployment and boosting accuracy. Designed for researchers and developers working with Natural Language Processing (NLP) in lesser-resourced languages, Wolaita_POST provides a robust solution for Wolaita language text analysis, making it a valuable tool in the NLP field.

Features

  • Accurate POS Tagging: Utilizes deep learning models (Bi-GRU, Bi-LSTM, etc.) to achieve precise Part-of-Speech tagging for Wolaita language text.
  • Pretrained Models: Ready-to-use pretrained models for quick deployment and high accuracy.
  • FastText Embeddings: Incorporates FastText word embeddings to capture subword information and improve performance on low-resource languages.
  • Easy Integration: Simple API that allows researchers and developers to integrate POS tagging into their NLP pipelines.
  • Supports Wolaita Language: Specifically designed for the Wolaita language, addressing the challenges of processing lesser-resourced languages.
  • Customizable: Flexible configuration to accommodate different models, tokenizers, and word vectors based on project requirements.
  • Efficient Deployment: Enables easy deployment for various NLP applications, such as machine translation and named entity recognition (NER).

Installation

To install Wolaita_POST, you can use pip:

  • !pip install Wolaita_POST

##Usage

After installation, you can use Wolaita_POST as follows:

  1. Import the package:

from Wolaita_POST import WolaitaPOSTagger

  1. Set file paths for your pretrained model, word vectors, and tokenizers:

import os

base_dir = "/content/drive/MyDrive" # Replace with the actual path

Set the relative paths

model_path = os.path.join(base_dir, "last_model/last_model/Bi_GRU_model.keras")

fasttext_model_path = os.path.join(base_dir, "FastText_and_embedding_matrix/fasttext_model.bin")

word_tokenizer_path = os.path.join(base_dir, "POS/word_tokenizer.pkl")

tag_tokenizer_path = os.path.join(base_dir, "POS/tag_tokenizer.pkl")

  1. Initialize the POS tagger:

pos_tagger = WolaitaPOSTagger(

model_path=model_path,

word_vector_path=fasttext_model_path,

word_tokenizer_path=word_tokenizer_path,

tag_tokenizer_path=tag_tokenizer_path

)

  1. Use the POS tagger to tag Wolaita text:

text = ['Insert your sample text here']

tagged_text = pos_tagger.tag(text)

print(tagged_text)

The tagged_text will contain the part-of-speech tags for the given Wolaita text.

##Running Tests

If you want to verify functionality, you can use pytest. Run this command in your project directory:

  • !pytest /content/drive/MyDrive/Wolaita_POST/tests > test_report.txt

##License

This project is licensed under the MIT License. See the LICENSE file for more details.

##Contributing

Contributions are welcome! If you have suggestions for improving the package or find any issues, feel free to open a pull request or submit an issue on GitHub.

##Acknowledgements

Special thanks to the developers and researchers who contributed to this project, making it possible to expand NLP resources for the Wolaita language.

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

wolaita_post-1.1.3.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

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

Wolaita_POST-1.1.3-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file wolaita_post-1.1.3.tar.gz.

File metadata

  • Download URL: wolaita_post-1.1.3.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for wolaita_post-1.1.3.tar.gz
Algorithm Hash digest
SHA256 2b4ac185052c9f273eacbeee2853594c3c9176dad44f739b818ebfbc2d4f3b03
MD5 205b1c5d9854bce98b4c59f3a442d9ef
BLAKE2b-256 98e2b53e2652e26e37d3c0f4e115e3bc083dfbd905e875e49a2593889c44aa96

See more details on using hashes here.

File details

Details for the file Wolaita_POST-1.1.3-py3-none-any.whl.

File metadata

  • Download URL: Wolaita_POST-1.1.3-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for Wolaita_POST-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8eccfd87f0db6a91902b8d70ee3b3edc9fdc77622277f2ee2494ea0de65902d6
MD5 d279ea81e8c5675180375f8620fcd50e
BLAKE2b-256 989ed9227867172b2f7a86f4306c99885c2b414c922ec2a2688fbcf505be7658

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