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)
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
locisimiles-0.1.0.tar.gz
(6.8 kB
view details)
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.1.0.tar.gz.
File metadata
- Download URL: locisimiles-0.1.0.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.13.3 Darwin/24.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
accd28604149f6e0e225e90ba431531170241c31de85979cfacd7cdfda7e3811
|
|
| MD5 |
c35b28b0d64e9ccda85a5eeb7541848a
|
|
| BLAKE2b-256 |
da1d843552e3712e3d501bcbdec4e353a980d9a92b6abc8186817b332e38e179
|
File details
Details for the file locisimiles-0.1.0-py3-none-any.whl.
File metadata
- Download URL: locisimiles-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.13.3 Darwin/24.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2270d1cf3c6d3c543fc3b32b3564a6217f0312eeee2cf6dbcb20b633a3adda5f
|
|
| MD5 |
93caeca300cb9db19977bae96955301c
|
|
| BLAKE2b-256 |
adc230fe7291e9cd09774bfa94ef2877cbb6a749621a0234ac95cb8d33ddf120
|