po2dataset


Namepo2dataset JSON
Version 0.1.0b0 PyPI version JSON
download
home_pageNone
SummaryPython tool to extract sentences from po files and create language datasets for NLP machine learning
upload_time2024-10-04 15:25:05
maintainerNone
docs_urlNone
authorNone
requires_pythonNone
licenseMIT License Copyright 2024 Urtzi Odriozola Lizaso Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords po dataset nlp argostranslate libretranslate language translation
VCS
bugtrack_url
requirements polib argparse
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # PO2Dataset

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](https://github.com/argosopentech/argos-train).

## How to install

### Manual installation

Create a virtual environment using [virtualenv](https://virtualenv.pypa.io/en/latest/index.html)

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

## Quick start guide

### Create Argos Train suitable dataset

```python
python po2dataset/po2dataset.py <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](https://en.wikipedia.org/wiki/ISO_639))
- `target_code`: Target language code ([ISO 639](https://en.wikipedia.org/wiki/ISO_639))
- `ref`: Some reference information of the project

## Support

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

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "po2dataset",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "po, dataset, NLP, argostranslate, libretranslate, language, translation",
    "author": null,
    "author_email": "Urtzi Odriozola <urtzi.odriozola@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/8f/be/8af23f2439161832724d214e0ddf643b81aaabab3f4a51ea4d50d186d391/po2dataset-0.1.0b0.tar.gz",
    "platform": null,
    "description": "# PO2Dataset\n\nPython tool to extract sentences from po files and create language datasets for NLP machine learning and neural machine translation.\n\nThis command line tool is intended to create dataset packages suitable for [Argos Train](https://github.com/argosopentech/argos-train).\n\n## How to install\n\n### Manual installation\n\nCreate a virtual environment using [virtualenv](https://virtualenv.pypa.io/en/latest/index.html)\n\n```bash\ngit clone https://github.com/urtzai/po2dataset.git\nvirtualenv po2dataset\ncd po2dataset\nsource ./bin/activate\n```\n\n## Quick start guide\n\n### Create Argos Train suitable dataset\n\n```python\npython po2dataset/po2dataset.py <path_to_po_file> --name <project_name> --source_code <source_lang_code> --target_code <target_lang_code> --ref \"Some reference information of the project\"\n```\n\nWhere:\n\n- `name`: The name of the project\n- `source_code`: Source language code ([ISO 639](https://en.wikipedia.org/wiki/ISO_639))\n- `target_code`: Target language code ([ISO 639](https://en.wikipedia.org/wiki/ISO_639))\n- `ref`: Some reference information of the project\n\n## Support\n\nShould you experience any issues do not hesistate to post an issue or contribute in this project pulling requests.\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright 2024 Urtzi Odriozola Lizaso  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "Python tool to extract sentences from po files and create language datasets for NLP machine learning",
    "version": "0.1.0b0",
    "project_urls": {
        "Bug Tracker": "https://github.com/urtzai/po2dataset/issues",
        "Documentation": "https://github.com/urtzai/po2dataset/blob/main/README.md",
        "Homepage": "https://github.com/urtzai/po2dataset",
        "Repository": "https://github.com/urtzai/po2dataset"
    },
    "split_keywords": [
        "po",
        " dataset",
        " nlp",
        " argostranslate",
        " libretranslate",
        " language",
        " translation"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "44311a8af9d96a038fd8f89b7afd6ad36bd437a6932018b885e97baf4074dbb8",
                "md5": "475cb9157d9fd3335fcbb1318a0374b5",
                "sha256": "f0138563e7d025d05f2771b7185d0347941c396b988bf791204a8a21eee384f5"
            },
            "downloads": -1,
            "filename": "po2dataset-0.1.0b0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "475cb9157d9fd3335fcbb1318a0374b5",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 4690,
            "upload_time": "2024-10-04T15:25:01",
            "upload_time_iso_8601": "2024-10-04T15:25:01.695781Z",
            "url": "https://files.pythonhosted.org/packages/44/31/1a8af9d96a038fd8f89b7afd6ad36bd437a6932018b885e97baf4074dbb8/po2dataset-0.1.0b0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8fbe8af23f2439161832724d214e0ddf643b81aaabab3f4a51ea4d50d186d391",
                "md5": "905cda915af08c11dae1b85d25f60159",
                "sha256": "a2df36f46904e7d74a8d4368bf1dd5a33b06d79b102866c0f6d66ae99f165480"
            },
            "downloads": -1,
            "filename": "po2dataset-0.1.0b0.tar.gz",
            "has_sig": false,
            "md5_digest": "905cda915af08c11dae1b85d25f60159",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 4052,
            "upload_time": "2024-10-04T15:25:05",
            "upload_time_iso_8601": "2024-10-04T15:25:05.638088Z",
            "url": "https://files.pythonhosted.org/packages/8f/be/8af23f2439161832724d214e0ddf643b81aaabab3f4a51ea4d50d186d391/po2dataset-0.1.0b0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-04 15:25:05",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "urtzai",
    "github_project": "po2dataset",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "polib",
            "specs": [
                [
                    "==",
                    "1.2.0"
                ]
            ]
        },
        {
            "name": "argparse",
            "specs": [
                [
                    "==",
                    "1.4.0"
                ]
            ]
        }
    ],
    "lcname": "po2dataset"
}
        
Elapsed time: 1.01314s