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)

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


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

Uploaded Python 3

File details

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

File metadata

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

Hashes for locisimiles-0.2.0.tar.gz
Algorithm Hash digest
SHA256 506e1f0e1b35664325742a81470a7bea468000ecfb0094fc049197510a6d8866
MD5 dc58df00a012241307450c3b65f2a2a1
BLAKE2b-256 0048d068dc5f742ea05e47f15dd88206013ebed342fbc22ce4a180d21631153b

See more details on using hashes here.

File details

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

File metadata

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

Hashes for locisimiles-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c7f0bba2ee6897874af7a7b0935b830aa8845c5890aa8f957cf43df3d795b6c4
MD5 4ef351a2c76e4b6172fa437f7a33bae7
BLAKE2b-256 c07a4f2f7ea96d21578f60c7d74669bdf37c95dcb166d2004875e08bfcfa72c0

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