Skip to main content

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)

Metadata

Release files for obeliks 1.1.7

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

Source distribution (sdist)

Source distribution for obeliks 1.1.7
File Size Uploaded
obeliks-1.1.7.tar.gz 15.2 kB Details

Built distribution (wheel)

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

Total release size: 33.0 kB

Release files / obeliks-1.1.7.tar.gz

Download URL obeliks-1.1.7.tar.gz
Size 15.2 kB
Tags Source
SHA-256 checksum
How to use checksums
4af8142cd787fa55c836a0b89f3f68bd11393d93dbcce2bb83d648030a619d99
BLAKE2b-256 checksum
How to use checksums
67a4b9869883b0238d3d02e1e96e29983bec3e0874000f431d7c81db4a2c10e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.15

Release files / obeliks-1.1.7-py3-none-any.whl

Download URL obeliks-1.1.7-py3-none-any.whl
Size 17.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
35f41474b4e7008665ca1cc08da3b8c44af43c133d3f0a0510ba52c3ebd42d4c
BLAKE2b-256 checksum
How to use checksums
d9d653d3e7f6c3f65386febdd2e6c22e02a97058cd8b063b6457e334459caed0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.15

Release history Release notifications | RSS feed

This release

1.1.7 This release

2 release files

1.1.6

2 release files

1.1.5

1 release file

1.1.4

1 release file

1.1.3

2 release files

1.1.2

1 release file

1.1.1

1 release file

1.1.0

1 release file

1.0.6

1 release file

1.0.5

1 release file

1.0.4

1 release file

1.0.3

1 release file

1.0.2

2 release files

1.0.1

2 release files

1.0

2 release files

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