Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

locisimiles-0.1.0-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

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

Hashes for locisimiles-0.1.0.tar.gz
Algorithm Hash digest
SHA256 accd28604149f6e0e225e90ba431531170241c31de85979cfacd7cdfda7e3811
MD5 c35b28b0d64e9ccda85a5eeb7541848a
BLAKE2b-256 da1d843552e3712e3d501bcbdec4e353a980d9a92b6abc8186817b332e38e179

See more details on using hashes here.

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

Hashes for locisimiles-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2270d1cf3c6d3c543fc3b32b3564a6217f0312eeee2cf6dbcb20b633a3adda5f
MD5 93caeca300cb9db19977bae96955301c
BLAKE2b-256 adc230fe7291e9cd09774bfa94ef2877cbb6a749621a0234ac95cb8d33ddf120

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page