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.2.tar.gz (7.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.2-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file locisimiles-0.1.2.tar.gz.

File metadata

  • Download URL: locisimiles-0.1.2.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

Hashes for locisimiles-0.1.2.tar.gz
Algorithm Hash digest
SHA256 55c47ea951983f6d944e8745c79d8254d1ee20a72941be11846307c101d8d613
MD5 00a12a756cedb933e9831d51fe32ff2b
BLAKE2b-256 7be402d07e3670f4df345fe57d0bb200ed0a0f8301dd5ca57b01a8f8b007cb3a

See more details on using hashes here.

File details

Details for the file locisimiles-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: locisimiles-0.1.2-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

Hashes for locisimiles-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 92c0ca3f4b4250df5dfaf23975d7de5010731cbc88e3cd09a030d2e8ae04bf3d
MD5 9376c02fbc70d57c1e7785f78ba62a62
BLAKE2b-256 8943d61fdb931ecc72fcbe7065f8e80d0c16ed14b14515f414aa654fb71170b6

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