Package for benching stemmatology algorithms
Project description
StemmaBench
StemmaBench is a Python package for quick generation of artificial, synthetic scribal traditions. From an original text, it generates a series of witnesses based on a set of variable aiming at describing the different scribal behaviors.
Motivation and theory
Quickstart
Install
Install can be done through the invoke task manager:
You first need to install invoke.
pip install invoke
Then run the command install
invoke install
(add --venv to run within a virtualenv)
If you want to run the tests, install the package in test mode:
invoke install --extra test
You can run the tests:
invoke test
(add --venv to run within the same virtualenv)
Command line
A possible way to generate a tradition is running the generate command:
generate --help
Usage: generate [OPTIONS] INPUT_TEXT OUTPUT_FOLDER CONFIGURATION
Generate a tradition of manuscripts.
Args:
input_text (str): The text to give as input for the tradition.
output_folder (str): The output folder for the tradition.
configuration (str): The configuration of the tradition.
Arguments:
INPUT_TEXT [required]
OUTPUT_FOLDER [required]
CONFIGURATION [required]
For demonstration, go to the folder demo and run:
generate .\test_text.txt output_folder .\config.yaml
Interactive use
See: jupyter quickstart
To do list
[] Add support for ancient languages (greek, hebrew mainly) => Will be done through using MACULA API
[] Add the possibility to work with contamination: [] Model contamination [] Create new contaminated text
[] Add support for missing manuscripts (new variable in stemma generation that will skip a generations): we do not have access to some heuristics.
[] Make vizualization more resiliant + a whole part of the package
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file stemmabench-0.0.1.tar.gz.
File metadata
- Download URL: stemmabench-0.0.1.tar.gz
- Upload date:
- Size: 1.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c8b9026e0c8b089ac94a53a94d074f72cbac06486c9857ad14c4ef12c92365f6
|
|
| MD5 |
586f8a7114fced71ee8408578cfccc63
|
|
| BLAKE2b-256 |
2ed05617d2f5507b2b5f1326037fb3e1e88efc9ae4d2b1018d87ccc0f94cdc79
|
File details
Details for the file stemmabench-0.0.1-py3-none-any.whl.
File metadata
- Download URL: stemmabench-0.0.1-py3-none-any.whl
- Upload date:
- Size: 1.9 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7cc2c78faf47b6847daac699f53f6a93d2f6bdbe012d74ab44b0a0ca45c549b5
|
|
| MD5 |
a0603c2fbd676c0390cd5a925285f5a7
|
|
| BLAKE2b-256 |
f684abb030470394be2e0af86488609440c2dabe27f6c67a2fe010925a8f38d5
|