Skip to main content

Paquete para PLN de lenguas originarias

Project description

Elotl Package

Paquete de Python3 con algoritmos e implementaciones de la comunidad Elotl para PLN de lenguas originaria.

Instalación

Desde la fuente

git clone https://github.com/ElotlMX/elotl_pkg.git
cd elotl_pkg
pip install -e .

Utilizando pip

pip install elotl

Uso

Importar por separado

>>> import elotl
>>> import elotl.nahuatl
>>> import elotl.otomi
>>> import elotl.wixarika
>>> elotl.test()
'Test paquete elotl satisfactorio'
>>> elotl.nahuatl.test()
'Test subpaquete elotl-nahuatl satisfactorio'
>>> elotl.otomi.test()
'Test subpaquete elotl-otomi satisfactorio'
>>> elotl.wixarika.test()
'Test subpaquete elotl-wixarika satisfactorio'

Importar todo

>>> from elotl import *
>>> nahuatl.test()
'Test subpaquete elotl-nahuatl satisfactorio'
>>> otomi.test()
'Test subpaquete elotl-otomi satisfactorio'
>>> wixarika.test()
'Test subpaquete elotl-wixarika satisfactorio'

Estructura del paquete

La siguiente estructura es una referencia. Conforme el paquete crezca se ira documentando mejor.

elotl/                              Top-level package
          __init__.py               Inicializar el paquete
          nahuatl/                  Subpaquete para el idioma nahuatl
                  __init__.py
                  corpus.py
                  stemmer.py
                  ...
          otomi/                    Subpaquete para el idioma otomi
                  __init__.py
                  corpus.py
                  stemmer.py
                  ...
          wixarika/                 Subpaquete para el idioma wixarika
                  __init__.py
                  corpus.py
                  stemmer.py
                  ...

Desarrollo

Crear un entorno virtual y activarlo.

virtualenv --python=/usr/bin/python3 elotl-venv
source elotl-venv/bin/activate

Actualizar pip y generar archivos de distribución.

python -m pip install --upgrade pip
python -m pip install --upgrade setuptools wheel
python setup.py clean sdist bdist_wheel

Probar el paquete local

pip install -e .

Enviar a PyPI

pip install twine
twine upload dist/*

Licencia

Mozilla Public License 2.0 (MPL 2.0)

Referencias

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

elotl-0.0.1.2-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file elotl-0.0.1.2-py3-none-any.whl.

File metadata

  • Download URL: elotl-0.0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.9

File hashes

Hashes for elotl-0.0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 19397f81b762d8b3d8463964210431f61250a03c4428009d19f36627864bccd3
MD5 123c1334b7e345ea95645ae82168a2c7
BLAKE2b-256 51be004d91aac894ad88b4df9968bacb37497e79d66ce12d95361ef5d97b1984

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