Skip to main content

Python tool to extract sentences from po files and create language datasets for NLP machine learning

Project description

PO2Dataset

PyPI version PyPI Supported Python Versions check

po2dataset is a python tool to extract sentences from po files and create language datasets for NLP machine learning and neural machine translation.

This command line tool is intended to create dataset packages suitable for Argos Train.

How to install

From pip

pip install po2dataset

Manual installation

Create a virtual environment using virtualenv

git clone https://github.com/urtzai/po2dataset.git
virtualenv po2dataset
cd po2dataset
source ./bin/activate

Quick start guide

Create Argos Train suitable dataset

po2dataset <path_to_po_file> --name <project_name> --source_code <source_lang_code> --target_code <target_lang_code> --ref "Some reference information of the project"

Where:

  • name: The name of the project
  • source_code: Source language code (ISO 639)
  • target_code: Target language code (ISO 639)
  • ref: Some reference information of the project

Optional arguments:

  • format: Extension name of the zip file (default argosdata)
  • license: License to add into the package (default CC0)

Support

Should you experience any issues do not hesistate to post an issue or contribute in this project pulling requests.

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

po2dataset-0.1.0.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

po2dataset-0.1.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file po2dataset-0.1.0.tar.gz.

File metadata

  • Download URL: po2dataset-0.1.0.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for po2dataset-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b2e68d6e9307c6c826ec2f9080b2dcc83e3b00b875820d64a01d5d8a22440c2f
MD5 f688a059417c60f64611ca7bd81043c8
BLAKE2b-256 505942fa2bd316298cfb7eaf5563940c2da6abc8c369f3e1545bfdb2d968073f

See more details on using hashes here.

File details

Details for the file po2dataset-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: po2dataset-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for po2dataset-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 682fe5a7db7dd873eef8d4fde206729d9634d7ad10ec1032501eabe777f656e8
MD5 f8613aab40b6ea5771787aa380dcb5f5
BLAKE2b-256 d2ff1160f18076e5c6efed246d58d865c735377ba0c9da4679f1554fb13deb22

See more details on using hashes here.

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