Skip to content

techiaith/language

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Techiaith Language

A Python library for working with language within the context of Machine Translation (MT).

This package depends on Python version 3.10, or higher.

Features

  • Translation direction: Work with language pairs for MT tasks
  • Language detection: Detect languages using pycld2 and gcld3

Installation

pip install techiaith-language

Quick Start

from techiaith.language import LanguagePair

# Create a language pair
langs = LanguagePair.fromstring("en-cy")
print(langs.source)  # "en"
print(langs.target)  # "cy"

# Detect language
from techiaith.language import detect
result = detect("Hello, how are you?")
print(result)

Documentation

Full documentation is available in multiple languages:

To view the documentation locally:

uv run python scripts/docs.py serve

Documentation will be available at http://0.0.0.0:8008

Development

See the full documentation for detailed development instructions.

Quick setup:

# Install uv
# See: https://docs.astral.sh/uv/getting-started/installation/

# Clone and setup
git clone https://github.com/techiaith/language techiaith-language
cd techiaith-language

# Install all dependencies
uv sync --all-extras

# Run tests
uv run pytest

Contributing

Contributions are welcome! Please see the documentation for development guidelines.

License

MIT License - See LICENSE file for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages