{ "info": { "author": "Sushain K. Cherivirala", "author_email": "sushain@skc.name", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Intended Audience :: Science/Research", "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: Implementation :: CPython", "Topic :: Text Processing :: Linguistic" ], "description": "# Apertium-Init (a.k.a. Apertium Bootstrap)\n\n[![Build Status](https://travis-ci.org/apertium/apertium-init.svg)](https://travis-ci.org/apertium/apertium-init)\n[![Coverage Status](https://coveralls.io/repos/github/apertium/apertium-init/badge.svg?branch=master)](https://coveralls.io/github/apertium/apertium-init?branch=master)\n[![PyPI](https://img.shields.io/pypi/v/apertium-init.svg)](https://pypi.org/project/apertium-init/)\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/apertium-init.svg)](https://pypi.org/project/apertium-init/)\n\nBootstrap Apertium language modules and pairs using `apertium-init.py`.\n\n## Usage\n\nFirst, download the script\nor install from [PyPi](https://pypi.org/project/apertium-init/) with `pip install apertium-init`.\n\nUsage depends on the desired module and is described below. Remember to\nsearch for `TODO` in the generated module to add example sentences, etc.\n\n### Monolingual Lttoolbox module\n\nTo bootstrap a monolingual language module `apertium-foo` using the\n[lttoolbox](http://wiki.apertium.org/wiki/Lttoolbox) formalism,\n\n```bash\n$ python3 apertium-init.py foo\n```\n\nTo bootstrap and compile it at the same time,\n\n```bash\n$ python3 apertium-init.py foo && ( cd apertium-foo/ && ./autogen.sh && make )\n```\n\n### Monlingual HFST module\n\nTo bootstrap a monolingual language module `apertium-foo` using the\n[HFST](http://wiki.apertium.org/wiki/HFST) formalism,\n\n```bash\n$ python3 apertium-init.py foo --analyser=hfst\n```\n\nTo bootstrap and compile it at the same time,\n\n```bash\n$ python3 apertium-init.py foo --analyser=hfst && ( cd apertium-foo/ && ./autogen.sh && make )\n```\n\nTo include a twoc file for handling prefixes,\n\n```bash\n$ python3 apertium-init.py foo --analyser=hfst --with-twoc\n```\n\nTo include a spellrelax file for handling typographical variance,\n\n```bash\n$ python3 apertium-init.py foo --analyser=hfst --with-spellrelax\n```\n\n### Bilingual Lttoolbox module\n\nTo bootstrap a bilingual language module `apertium-foo-bar` where the\nmonolingual packages `apertium-foo` and `apertium-bar` both use the\n[lttoolbox](http://wiki.apertium.org/wiki/Lttoolbox) formalism,\n\n```bash\n$ python3 apertium-init.py foo-bar\n```\n\nTo bootstrap and compile it at the same time,\n\n```bash\n$ python3 apertium-init.py foo-bar && ( cd apertium-foo-bar/ && ./autogen.sh && make test)\n```\n\n### Bilingual HFST/Lttoolbox module\n\nTo bootstrap a bilingual language module `apertium-foo-bar` where the\nmonolingual packages `apertium-foo` and `apertium-bar` use the\n[HFST](http://wiki.apertium.org/wiki/Lttoolbox) formalism and/or the\n[lttoolbox](http://wiki.apertium.org/wiki/Lttoolbox) formalism,\n\n```bash\n$ python3 apertium-init.py foo-bar --analysers=hfst # Both foo and bar use HFST\n$ python3 apertium-init.py foo-bar --analyser1=hfst # Only foo (first language) uses HFST\n$ python3 apertium-init.py foo-bar --analyser2=hfst # Only bar (second language) uses HFST\n```\n\nTo bootstrap and compile it at the same time,\n\n```bash\n$ python3 apertium-init.py foo-bar --analysers=hfst && ( cd apertium-foo-bar/ && ./autogen.sh && make test) # Both foo and bar use HFST\n$ python3 apertium-init.py foo-bar --analyser1=hfst && ( cd apertium-foo-bar/ && ./autogen.sh && make test) # Only foo (first language) uses HFST\n$ python3 apertium-init.py foo-bar --analyser2=hfst && ( cd apertium-foo-bar/ && ./autogen.sh && make test) # Only bar (second language) uses HFST\n```\n\n### Bilingual module for monolinguals that don't use apertium-tagger or CG\n\nTo bootstrap a bilingual module when one or both of the monolingual modules don't use apertium-tagger,\n\n```bash\n$ python3 apertium-init.py foo-bar --no-prob1 # Only foo doesn't have .prob\n$ python3 apertium-init.py foo-bar --no-prob2 # Only bar doesn't have .prop\n$ python3 apertium-init.py foo-bar --no-prob1 --no-prob2 # Neither foo nor bar have .prob\n```\n\nTo bootstrap a bilingual module when one or both of the monolingual modules don't use [CG](http://wiki.apertium.org/wiki/Constraint_Grammar),\n\n```bash\n$ python3 apertium-init.py foo-bar --no-rlx1 # Only foo doesn't have .rlx\n$ python3 apertium-init.py foo-bar --no-rlx2 # Only bar doesn't have .rlx\n$ python3 apertium-init.py foo-bar --no-rlx1 --no-rlx2 # Neither foo nor bar have .rlx\n```\n\n### Pushing to Github\n\nTo bootstrap a module or pair and also add it to the [apertium incubator](https://github.com/apertium/apertium-incubator),\n\n```bash\n$ python3 apertium-init.py foo -p # Bootstrap module apertium-foo and push to Github\n$ python3 apertium-init.py foo-bar -p # Bootstrap pair apertium-foo-bar and push to Github\n```\n\nTo specify what username to push as (rather than relying on `git config`),\n\n```bash\n$ python3 apertium-init.py foo -p -u bar # Bootstrap module apertium-foo and push to Github under username bar\n```\n\n## Development\n\nAfter updating vanilla files, run `./updateBootstraper.py` to update the\nrelevant encoded files in `apertium-init.py`. Or, run `make` in the root\nof the repository to update all the encoded files.\n\nYou can also do `sudo make install` to install to `/usr/local/bin/apertium-init`\nor e.g. `PREFIX=$HOME/local make install` to install to `$HOME/local/bin/apertium-init`.\n\nUse `pipenv install --dev` to install the requirements required for\ndevelopment, e.g. linters.\n\n## Releasing\n\nAfter installing development resources following the instructions above,\ndeploying to PyPi is relatively straightforward.\n\nUse `make dist` to create a source distributable inside the `dist` directory\nthat can be installed locally via `pip`.\n\nUse `make test-release` and `make release` to deploy to the [testing PyPi instance](https://test.pypi.org/)\nand the [production PyPi instance](https://pypi.org/) respectively. Either\nstep requires PyPi authentication credentials with access to the apertium-init\npackage.\n\n\n", "description_content_type": "text/markdown; charset=UTF-8", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/apertium/apertium-init", "keywords": "apertium parsing linguistics", "license": "GPLv3+", "maintainer": "", "maintainer_email": "", "name": "apertium-init", "package_url": "https://pypi.org/project/apertium-init/", "platform": "", "project_url": "https://pypi.org/project/apertium-init/", "project_urls": { "Homepage": "https://github.com/apertium/apertium-init" }, "release_url": "https://pypi.org/project/apertium-init/2.2.0/", "requires_dist": null, "requires_python": ">=3.4", "summary": "Bootstrap Apertium language modules and pairs", "version": "2.2.0" }, "last_serial": 5629697, "releases": { "2.0.2": [ { "comment_text": "", "digests": { "md5": "a82737f31ee86faffc864985865001c2", "sha256": "bc8b807014fed869f94ac54c10512801675ce0cbfe818841217ec90b242e20b1" }, "downloads": -1, "filename": "apertium_init-2.0.2-py3-none-any.whl", "has_sig": true, "md5_digest": "a82737f31ee86faffc864985865001c2", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 74973, "upload_time": "2018-03-25T02:51:53", "url": "https://files.pythonhosted.org/packages/8a/c3/63e254f57adb988658a21534812c213254d00cbe02c10c74fa5dd288fe20/apertium_init-2.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "000a7d7b8fd633aadcfd9b4abb8f4313", "sha256": "3d46440660669d3004ae0d23c6e5b50c5b0e1759a74a477eef9db5a0030019c4" }, "downloads": -1, "filename": "apertium-init-2.0.2.tar.gz", "has_sig": true, "md5_digest": "000a7d7b8fd633aadcfd9b4abb8f4313", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 85966, "upload_time": "2018-03-25T02:51:51", "url": "https://files.pythonhosted.org/packages/ea/67/6356a18f3a0990b14f90589652ea00b2a8f3f39dfb110ed44624446ed7f1/apertium-init-2.0.2.tar.gz" } ], "2.0.3": [ { "comment_text": "", "digests": { "md5": "dbdacf75addee720dd8c57d17da3abcf", "sha256": "55bf7524f0895ee7a3e51f07de7dbb465cdd948dd9292e7b2151f5a3b4d45b24" }, "downloads": -1, "filename": "apertium_init-2.0.3-py3-none-any.whl", "has_sig": true, "md5_digest": "dbdacf75addee720dd8c57d17da3abcf", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 74956, "upload_time": "2018-03-25T02:54:08", "url": "https://files.pythonhosted.org/packages/f3/f7/e876b97370412b38823d9679b1ec96ae3cd02d43041b37792a4bde397f1b/apertium_init-2.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f36ebcf36276d1c471c3eebcaed5f3ad", "sha256": "728e1f213f39acab5507ac72d27249bc7898069d51837e25420a1dfb7cdb6792" }, "downloads": -1, "filename": "apertium-init-2.0.3.tar.gz", "has_sig": true, "md5_digest": "f36ebcf36276d1c471c3eebcaed5f3ad", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 85933, "upload_time": "2018-03-25T02:54:05", "url": "https://files.pythonhosted.org/packages/c5/e5/1ca3a43a1b03932a9ac3efcc06948f4299e5de7d4221fc1c764f4a39695b/apertium-init-2.0.3.tar.gz" } ], "2.1.0": [ { "comment_text": "", "digests": { "md5": "ea7669137e8e1b74e3bcfd8b287ad8b1", "sha256": "ff2fff97e1745617330450e58454b6c8d7cac49eff68d670d5b257476fba0522" }, "downloads": -1, "filename": "apertium_init-2.1.0-py3-none-any.whl", "has_sig": true, "md5_digest": "ea7669137e8e1b74e3bcfd8b287ad8b1", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 75145, "upload_time": "2018-03-25T18:41:11", "url": "https://files.pythonhosted.org/packages/e6/80/b2d38fc52d0efd4d155f7d92b8cb2a2df353e4f95778cc18ffeea85c133a/apertium_init-2.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1c1ffcd4e60bb6212b6e22023382309c", "sha256": "f85a7b12d176640ca31eeabeaf56bcd25af28ce0ca1f0ab595789ee95aa1c08c" }, "downloads": -1, "filename": "apertium-init-2.1.0.tar.gz", "has_sig": true, "md5_digest": "1c1ffcd4e60bb6212b6e22023382309c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 86095, "upload_time": "2018-03-25T18:41:10", "url": "https://files.pythonhosted.org/packages/e5/4e/fc537a1cdcba4917c9cdde409d98e91cb67dc2cfae85fd3b02407ca7c50f/apertium-init-2.1.0.tar.gz" } ], "2.1.1": [ { "comment_text": "", "digests": { "md5": "c059258a25a02e7b462be8516f88e4c0", "sha256": "38a4f6f9508cf6cc264483baac37506ab5be8cd4863e1655bb31252dcbe2cd48" }, "downloads": -1, "filename": "apertium_init-2.1.1-py3-none-any.whl", "has_sig": true, "md5_digest": "c059258a25a02e7b462be8516f88e4c0", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 74572, "upload_time": "2018-03-27T01:16:58", "url": "https://files.pythonhosted.org/packages/5e/1e/c037620f67e972f68abbd4a47a06503a1786c030cc511d5d5dbaa96debe2/apertium_init-2.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2291aba1a9fe7521be663d9810f0c556", "sha256": "72720dcbd185039dae9228b0c8385b9a6c2f802e673af8f354e1a0aa32528e5d" }, "downloads": -1, "filename": "apertium-init-2.1.1.tar.gz", "has_sig": true, "md5_digest": "2291aba1a9fe7521be663d9810f0c556", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 156071, "upload_time": "2018-03-27T01:16:55", "url": "https://files.pythonhosted.org/packages/58/ee/9046aae78816b352af27e4c3492ead89f8c7a70f6d23ed7183aa8e1ab1a3/apertium-init-2.1.1.tar.gz" } ], "2.1.2": [ { "comment_text": "", "digests": { "md5": "a5d86660e7e38a9e13a9cfa94fce213c", "sha256": "bd718dd16f231141591168d26587d546e77e8a19add27d0188a1a1e8d691adf6" }, "downloads": -1, "filename": "apertium_init-2.1.2-py3-none-any.whl", "has_sig": true, "md5_digest": "a5d86660e7e38a9e13a9cfa94fce213c", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 74584, "upload_time": "2018-03-29T03:50:46", "url": "https://files.pythonhosted.org/packages/19/fb/97345ed2859ca660c6c8e5d6407c5b5248702d8995d99463475ebedaabb8/apertium_init-2.1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4a15da87d942f0afe0a6045964b8cc5a", "sha256": "0fc12337844049d67f1204eb5d2b84167a8c0b168edb7f962b0dcdc83e72673f" }, "downloads": -1, "filename": "apertium-init-2.1.2.tar.gz", "has_sig": true, "md5_digest": "4a15da87d942f0afe0a6045964b8cc5a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 156094, "upload_time": "2018-03-29T03:50:44", "url": "https://files.pythonhosted.org/packages/06/8f/e6d5b3e7bd2b129f3d116413c5aebb7e491fe2b531533222fd5c9198c072/apertium-init-2.1.2.tar.gz" } ], "2.1.3": [ { "comment_text": "", "digests": { "md5": "582f1121e73256cd6c38a52402b8d303", "sha256": "c7ea710b6c184f4cac40b3398bcd4e1fa8f94f3d57a73bc5c511f8a4c44edbbf" }, "downloads": -1, "filename": "apertium_init-2.1.3-py3-none-any.whl", "has_sig": true, "md5_digest": "582f1121e73256cd6c38a52402b8d303", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.4", "size": 85457, "upload_time": "2018-11-16T22:29:05", "url": "https://files.pythonhosted.org/packages/c7/9b/e1d581b1cfad1212ce734853b097ff86f55eb61f602dc9c079a9a1f73a3f/apertium_init-2.1.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c98702b87c402419b2427988f5049c84", "sha256": "4e516a29eb94b38b66c119fc1464223004a40eca5fd516848555980e57ca8e22" }, "downloads": -1, "filename": "apertium-init-2.1.3.tar.gz", "has_sig": true, "md5_digest": "c98702b87c402419b2427988f5049c84", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 157806, "upload_time": "2018-11-16T22:29:06", "url": "https://files.pythonhosted.org/packages/b5/7f/6ee82f5e106e46929f5fe782d4ce50797b16ceaeac60036f2f679889b400/apertium-init-2.1.3.tar.gz" } ], "2.1.4": [ { "comment_text": "", "digests": { "md5": "7638f959fa7d16842ec2dfbafe483587", "sha256": "274f1d57001d0b3061d6f309630b89f284c8067cb6d1c6e9cf2ca607b6ff4daf" }, "downloads": -1, "filename": "apertium_init-2.1.4-py3-none-any.whl", "has_sig": true, "md5_digest": "7638f959fa7d16842ec2dfbafe483587", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.4", "size": 85731, "upload_time": "2019-02-26T23:42:32", "url": "https://files.pythonhosted.org/packages/c6/71/cb01b1c610ed12bd78844867fd1efa29beb6e8dee04d12fe17b14965e42d/apertium_init-2.1.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "465d05151ce084c02fc40e9667616410", "sha256": "a243ea66e63a50a8fc396aee3a534cb00e358dbf77d3f5a43ec756b90f431b80" }, "downloads": -1, "filename": "apertium-init-2.1.4.tar.gz", "has_sig": true, "md5_digest": "465d05151ce084c02fc40e9667616410", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 158451, "upload_time": "2019-02-26T23:42:35", "url": "https://files.pythonhosted.org/packages/da/eb/ac2edf0b640b34c99d75ef53960e39d62dbe76317f5bb56635fa0e2e68a3/apertium-init-2.1.4.tar.gz" } ], "2.2.0": [ { "comment_text": "", "digests": { "md5": "c3eb508607908e1eb9fe85e43c85457e", "sha256": "9bd9cbb50fd6d680c97744e0c1f0ba478e851df7d85f3a91a3eb6d0730f90c7b" }, "downloads": -1, "filename": "apertium_init-2.2.0-py3-none-any.whl", "has_sig": true, "md5_digest": "c3eb508607908e1eb9fe85e43c85457e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.4", "size": 61029, "upload_time": "2019-08-04T03:46:39", "url": "https://files.pythonhosted.org/packages/62/79/a1a96ffab3830bf54478cd31dff487659fe3a5dbeeb6212c59b4e1a45c42/apertium_init-2.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4fe3635d9425f277c1a73862e4b29808", "sha256": "2688f8f29ef95907befe9e55c4b9913bb6f241dfaef432107dbbcf610bdd5ed8" }, "downloads": -1, "filename": "apertium-init-2.2.0.tar.gz", "has_sig": true, "md5_digest": "4fe3635d9425f277c1a73862e4b29808", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 108616, "upload_time": "2019-08-04T03:46:41", "url": "https://files.pythonhosted.org/packages/8b/76/e1c9e04f0a408b81f203bfbfa923a6920d7ab0674b488fbadae1ef759c80/apertium-init-2.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c3eb508607908e1eb9fe85e43c85457e", "sha256": "9bd9cbb50fd6d680c97744e0c1f0ba478e851df7d85f3a91a3eb6d0730f90c7b" }, "downloads": -1, "filename": "apertium_init-2.2.0-py3-none-any.whl", "has_sig": true, "md5_digest": "c3eb508607908e1eb9fe85e43c85457e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.4", "size": 61029, "upload_time": "2019-08-04T03:46:39", "url": "https://files.pythonhosted.org/packages/62/79/a1a96ffab3830bf54478cd31dff487659fe3a5dbeeb6212c59b4e1a45c42/apertium_init-2.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4fe3635d9425f277c1a73862e4b29808", "sha256": "2688f8f29ef95907befe9e55c4b9913bb6f241dfaef432107dbbcf610bdd5ed8" }, "downloads": -1, "filename": "apertium-init-2.2.0.tar.gz", "has_sig": true, "md5_digest": "4fe3635d9425f277c1a73862e4b29808", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 108616, "upload_time": "2019-08-04T03:46:41", "url": "https://files.pythonhosted.org/packages/8b/76/e1c9e04f0a408b81f203bfbfa923a6920d7ab0674b488fbadae1ef759c80/apertium-init-2.2.0.tar.gz" } ] }