Skip to main content

Simple CLI to convert any annotated document in UIMA CAS XMI to CONLL format (IOB schema support).

Project description

xmi2conll CLI

Python Version License: MIT PyPI version

logo

Simple CLI to convert any annotated document in UIMA CAS XMI to CONLL format (IOB schema support).

Installation:

Start by create and activate a new environnement with virtualenv :

virtualenv --python=/usr/bin/python3.8 venv
source venv/bin/activate

then choose:

  • Easy way (use pip):
pip install xmi2conll
  • Dev install:
git clone https://github.com/Lucaterre/xmi2conll
pip install -r requirements.txt

Usage:

with pip install run:

x2c --help

or with dev install run:

python x2c.py --help
Usage: x2c.py [OPTIONS] INPUT_XMI TYPESYSTEM

  XMI to CONLL Converter CLI © 2022 - @Lucaterre

  INPUT_XMI (str): XMI file path or directory path that contains XMI for batch
  processing.

  TYPESYSTEM (str): Typesystem.xml path.

Options:
  -o, --output TEXT               output path that contains new conll, 
                                  if it not specify ./output/ is auto created.
                                  [default: ./output/]
  -tn, --type_name_annotations TEXT
                                  type name of the annotations  [default: de.t
                                  udarmstadt.ukp.dkpro.core.api.ner.type.Named
                                  Entity]
  -s, --conll_separator TEXT      Defines a separator in CONLL between mention
                                  and label; only 'space' or 'tab' are accepted [default:
                                  space]
  -h, --header BOOLEAN            show or hide title of CLI  [default: True]
  --help                          Show this message and exit.

Citation:

@misc{xmi2conll-cli,
    author = "Lucas Terriel",
    title = {xmi2conll, a cli to convert any annotated document in UIMA CAS XMI to CONLL format (IOB schema support)},
    howpublished = {\url{https://github.com/Lucaterre/xmi2conll}},
    year = {2022}
}

License:

This tool is distributed under MIT license.

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

xmi2conll-0.1.1.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

xmi2conll-0.1.1-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file xmi2conll-0.1.1.tar.gz.

File metadata

  • Download URL: xmi2conll-0.1.1.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.7

File hashes

Hashes for xmi2conll-0.1.1.tar.gz
Algorithm Hash digest
SHA256 309d91f46402c7515989a1057a5a351f3f548fde4d6489c85d295a3c0011a865
MD5 6c7a70f481450669a90371fabc71fe88
BLAKE2b-256 b07b9c6a5e34c09e0cca85fa42a6a2d198f3afbd5606ccf50ff047f32822ac00

See more details on using hashes here.

File details

Details for the file xmi2conll-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: xmi2conll-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.7

File hashes

Hashes for xmi2conll-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1670ce3c169e2632dee7caaaa772c851f9edf693e83b03d2b7c5ef5d768ff2d5
MD5 a460811a6a62e5238a42264f4467be13
BLAKE2b-256 e2e098f474b74867ead451eec73fcec01ef7123ddcd93394fcc6add04daa6466

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