Skip to main content

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.

Metadata

Release files for camel2karam 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for camel2karam 0.0.3
File Size Uploaded Provenance Actions
camel2karam-0.0.3.tar.gz 33.7 kB Without provenance Details for camel2karam-0.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for camel2karam 0.0.3
File Interpreter ABI Platform Actions
camel2karam-0.0.3-py3-none-any.whl Python 3 none any Details for camel2karam-0.0.3-py3-none-any.whl

Total release size: 74.5 kB

Release files / camel2karam-0.0.3.tar.gz

Download URL camel2karam-0.0.3.tar.gz
Size 33.7 kB
Tags Source
SHA-256 checksum
How to use checksums
b58e14163a8259164e912b48c2c3ffe70ddb9bd24dc56b7ed7baf64439a36b45
BLAKE2b-256 checksum
How to use checksums
98afc6b1bbce296f104c853c1989139fb674e198486e8ae41d76b27f9bd58af9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.26.0

Release files / camel2karam-0.0.3-py3-none-any.whl

Download URL camel2karam-0.0.3-py3-none-any.whl
Size 40.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8f82f85a8bcd812e7a4f92be110a1fc1b7935d43569f49856ae74d778ff38d61
BLAKE2b-256 checksum
How to use checksums
9021487b2a5e8e56752ca7cc9326639c2b71c6851e9cc493ee7940b4c3c25c29
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.26.0

Security for camel2karam 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page