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)
| File | Size | Uploaded | |
|---|---|---|---|
| obeliks-1.1.7.tar.gz | 15.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|