LociSimiles is a Python package for finding intertextual links in Latin literature using pre-trained language models.
Project description
Loci Similes
LociSimiles is a Python package for finding intertextual links in Latin literature using pre-trained language models.
Basic Usage
# Load example query and source documents
query_doc = Document("../data/hieronymus_samples.csv")
source_doc = Document("../data/vergil_samples.csv")
# Load the pipeline with pre-trained models
pipeline = ClassificationPipelineWithCandidategeneration(
classification_name="...",
embedding_model_name="...",
device="cpu",
)
# Run the pipeline with the query and source documents
results = pipeline.run(
query=query_doc, # Query document
source=source_doc, # Source document
top_k=3 # Number of top similar candidates to classify
)
pretty_print(results)
Optional Gradio GUI
Install the optional GUI extra to experiment with a minimal Gradio front end:
pip install locisimiles[gui]
Launch the interface from the command line:
locisimiles-gui
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 locisimiles-0.2.1.tar.gz.
File metadata
- Download URL: locisimiles-0.2.1.tar.gz
- Upload date:
- Size: 18.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.13.3 Darwin/24.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c37c3276a8dc07bcf26a37e882bdd99d753adc35ae4a91ba721bf507b01398e1
|
|
| MD5 |
f31780b6277efc2d1215f71ad2514ecf
|
|
| BLAKE2b-256 |
7a808a627017a5b613b4f8f1057aeba6183853987d41d2769db0d9661a53f407
|
File details
Details for the file locisimiles-0.2.1-py3-none-any.whl.
File metadata
- Download URL: locisimiles-0.2.1-py3-none-any.whl
- Upload date:
- Size: 23.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.13.3 Darwin/24.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac4bae81b72dee0044fa29cd4e08d5bc5232e20069cc0ba398f7dcdf105f8347
|
|
| MD5 |
0fcfddcd6d9a07f605cee51dbda7c129
|
|
| BLAKE2b-256 |
6afdf61090138a35e18016aa8ab7bd65e00aeb58a3c1af564c69c00e4df5e132
|