Skip to main content

No project description provided

Project description

Camel 2 KARAM

PyPI - Version PyPI - Python Version

Camel 2 KARAM


Table des matières

Installation

PyPi

Camel 2 KARAM est disponible sur PyPi, vous pouvez l'installer avec pip à l'aide de la commande suivante:

pip install camel2karam

Vous pouvez ensuite vérifier que l'installation s'est bien passée en lançant la commande camel2karam --version

Développement

Pour installer Europarser en mode développement, vous pouvez cloner le dépôt git et installer les dépendances avec pip:

git clone https://github.com/CERES-Sorbonne/C2K.git
cd C2K
pip install -e .

Usages

Usage basique

from pathlib import Path

from camel2karam.converters import PartsMapping, Csv2Connlu, CsvSent2CsvTok, CsvSent2OneLetterTag, CsvTok2CsvSent, Jsonl2Connlu, Jsonl2Csv, Jsonl2Xml, TagsetConvert # Liste de tous les convertisseurs disponibles (et PartsMapping)

input_folder = Path('/path/to/your/input')
output_folder = Path('/path/to/your/output')

converter = Jsonl2Connlu() # Changer le convertisseur ici
converter.folder_converter(input_folder, output_folder)

Certains convertisseurs nécessitent des paramètres supplémentaires, vous pouvez les passer en argument du constructeur du convertisseur. Par exemple, les convertisseurs prenant des fichiers CSVs en entrée vous demanderont le mapping des colonnes :

from camel2karam.converters import Csv2Connlu
c2c = Csv2Connlu()

c2c.folder_converter(
    "path/to/your/input",
    "path/to/your/output",
    word_col="word",
    pos_col="pos",
    pos2_col=None
)

Caveats

The Jsonl2WebAnno converter (in the converters.jsonl2webanno file) needs an extra dependency to work properly. You can install it with the following command:

pip install git+https://github.com/neuged/webanno_tsv.git

License

camel2karam est distribué sous les termes de la licence AGPLv3.

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

camel2karam-0.0.3.tar.gz (33.7 kB view details)

Uploaded Source

Built Distribution

camel2karam-0.0.3-py3-none-any.whl (40.8 kB view details)

Uploaded Python 3

File details

Details for the file camel2karam-0.0.3.tar.gz.

File metadata

  • Download URL: camel2karam-0.0.3.tar.gz
  • Upload date:
  • Size: 33.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.26.0

File hashes

Hashes for camel2karam-0.0.3.tar.gz
Algorithm Hash digest
SHA256 b58e14163a8259164e912b48c2c3ffe70ddb9bd24dc56b7ed7baf64439a36b45
MD5 1d643e83d65e0af6f3a61ddc3afef8c0
BLAKE2b-256 98afc6b1bbce296f104c853c1989139fb674e198486e8ae41d76b27f9bd58af9

See more details on using hashes here.

File details

Details for the file camel2karam-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for camel2karam-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8f82f85a8bcd812e7a4f92be110a1fc1b7935d43569f49856ae74d778ff38d61
MD5 6930f39fd6e73a8d98b1aa9a779ea9d8
BLAKE2b-256 9021487b2a5e8e56752ca7cc9326639c2b71c6851e9cc493ee7940b4c3c25c29

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