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.1.tar.gz
(7.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.1.tar.gz.
File metadata
- Download URL: locisimiles-0.1.1.tar.gz
- Upload date:
- Size: 7.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 |
bf9d088a22a1c7c7234fdb32f1549d0f3d46e84eafd8c589f9c6aec045840b1d
|
|
| MD5 |
47a78ec2e5d3b1737ff7bb38e413921c
|
|
| BLAKE2b-256 |
fe5f22d7158149f6370be0bbda15c6ac0425b4bbb0e3f31006182378062d855b
|
File details
Details for the file locisimiles-0.1.1-py3-none-any.whl.
File metadata
- Download URL: locisimiles-0.1.1-py3-none-any.whl
- Upload date:
- Size: 9.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 |
732f3d23d4a390f9c13783202b3e1803655b0338b5fe49d91e2daea02be1629b
|
|
| MD5 |
88daee119565ca94e5c5eae255240456
|
|
| BLAKE2b-256 |
0b7fba661d8b961aadc15898b6275d0a988936aef501ffe9c9c80eaf50dbdedb
|