Skip to main content

Sentence splitting & tokenization

Project description

Obeliks - sentence splitting & tokenization

Instalation

Install from PyPI:

pip install obeliks

Usage

Command line:

obeliks -h

Command line parameters:

-if <name*> read input from one or more files
-sif        read input from list of files, specified via stdin
-o <name>   write output to file <name>
-tei        produce XML-TEI output
-c		    produce CoNLL-U output
-d		    pass "newdoc id" to output (implies -c)

Usage examples:

obeliks "To je stavek." "Tudi to je stavek."
echo -e "To je stavek.\nTudi to je stavek." | obeliks
obeliks "To je stavek." "Tudi to je stavek." -o output.txt
echo -e "To je stavek.\nTudi to je stavek." | obeliks > output.txt
obeliks -if text*.txt
cat text*.txt | obeliks

As a Python module:

import obeliks

text = 'Pozdravljen, svet!'

# Store results to string
output = obeliks.run(text, conllu=True)

# Write result to file
obeliks.run(text, out_file='tei.txt', tei=True)

# Write to stdout
obeliks.run(text, to_stdout=True, conllu=True)

# Return object
object = obeliks.run(text, object_output=True)

# Read input from file(s)
output = obeliks.run(in_file='in.txt', conllu=True)
output = obeliks.run(in_files=['in1.txt', 'in2.txt'], tei=True)

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

obeliks-1.1.6.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

obeliks-1.1.6-py3-none-any.whl (18.4 kB view details)

Uploaded Python 3

File details

Details for the file obeliks-1.1.6.tar.gz.

File metadata

  • Download URL: obeliks-1.1.6.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.7.1

File hashes

Hashes for obeliks-1.1.6.tar.gz
Algorithm Hash digest
SHA256 6de8b58add81a375875bbe88fb305e8ed6d79d14533974eb94046ec4fefd2a49
MD5 454eab4c7de47798ca59b7f93c993c07
BLAKE2b-256 bc44fa18f50d28475e6b413ddd16c74802f377aa0822dbf0c13908d8c41fcf3e

See more details on using hashes here.

File details

Details for the file obeliks-1.1.6-py3-none-any.whl.

File metadata

  • Download URL: obeliks-1.1.6-py3-none-any.whl
  • Upload date:
  • Size: 18.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.7.1

File hashes

Hashes for obeliks-1.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 2f1910009b292474cc846d0ac7c028c6637f036a9851570f9a263ec30fdd28ad
MD5 10df49e8fb939d317df56121a5cef8fb
BLAKE2b-256 cbbdfb8e60c8e5b2139a65d9af43330c301db9001c886766e0e951f8d2cd72dd

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