conllu-cmc

Docker

Reads CoNLL-U format from stdin and annotates emojis, emoticons, hashtags, URLs, email addresses, action words, @names, and Wikipedia emoji templates with their corresponding STTS-IBK POS tag (Beißwenger/Bartsch/Evert/Würzner 2016). Writes CoNLL-U format to stdout.

Docker Usage

# Annotate CoNLL-U input
korapxml2conllu kyc.zip | docker run --rm -i korap/conllu-cmc

# With sparse output (only annotated lines)
korapxml2conllu kyc.zip | docker run --rm -i korap/conllu-cmc -s

# Generate KorAP-XML zip with CMC annotations
korapxml2conllu kyc.zip | docker run --rm -i korap/conllu-cmc -s | conllu2korapxml > kyc.cmc.zip

# Show help
docker run --rm korap/conllu-cmc --help

Local Usage

Using npm/node

korapxml2conllu kyc.zip | npx conllu-cmc

Using standalone binary

korapxml2conllu kyc.zip | ./conllu2cmc

Generate KorAP-XML zip with CMC annotations

korapxml2conllu kyc.zip | conllu2cmc -s | conllu2korapxml > kyc.cmc.zip

Installation

Docker (recommended)

docker pull korap/conllu-cmc

Pre-built Binaries

Download pre-built executables from the Releases page:

  • conllu2cmc - Linux x64
  • conllu2cmc - macOS x64
  • conllu2cmc.exe - Windows x64

npm

npm install 'git+https://gitlab.ids-mannheim.de/KorAP/conllu-cmc-docker.git'

Build from source

npm install

Build standalone executables

# Build for all platforms
npm run pkg-all

# Or build for specific platforms
npm run pkg-linux   # Linux x64
npm run pkg-macos   # macOS x64
npm run pkg-win     # Windows x64

Executables are created in bin/linux/, bin/macos/, and bin/win/.

References

Beißwenger, Michael/Bartsch, Sabine/Evert, Stefan/Würzner, Kay-Michael (2016): EmpiriST 2015: A Shared Task on the Automatic Linguistic Annotation of Computer-Mediated Communication and Web Corpora. In: Proceedings of the 10th Web as Corpus Workshop. Berlin: Association for Computational Linguistics, S. 44–56. https://doi.org/10.18653/v1/W16-2606.