Skip to main content

Oncology extraction schema for MESA

Project description

Oncoschema

Schema package for oncology extraction from cancer clinical documents.

Structure

📁 oncoschema
├── examples/            # Training examples showing document input and structured output
├── schema.py            # Pydantic model for specifying expected output structure
├── prompt_builder.py    # Prompt builder for data generation and inference
├── prompt_datagen.txt   # Prompt template with example (for training data generation)
├── prompt_main.txt      # Prompt template without example (for inference/deployment)
└── py.typed             # Type checking marker

Usage

from oncoschema.prompt_builder import PromptBuilder

# Initialize builder
builder = PromptBuilder()

# Build data generation prompt (with example)
datagen_prompt = builder.build_datagen_prompt()

# Build main/inference prompt (without example)
main_prompt = builder.build_main_prompt()

License

This project uses a proprietary license issued by Guy's and St Thomas' NHS Foundation Trust (see LICENSE.md).

The contents of this repository are designed for NHS organisations to use on private data.

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

londonaicentre_oncoschema-2.0.0.tar.gz (23.2 kB view details)

Uploaded Source

Built Distribution

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

londonaicentre_oncoschema-2.0.0-py3-none-any.whl (25.1 kB view details)

Uploaded Python 3

File details

Details for the file londonaicentre_oncoschema-2.0.0.tar.gz.

File metadata

  • Download URL: londonaicentre_oncoschema-2.0.0.tar.gz
  • Upload date:
  • Size: 23.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Amazon Linux","version":"2023","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for londonaicentre_oncoschema-2.0.0.tar.gz
Algorithm Hash digest
SHA256 509af9b53222ca6c432fb8a0731efad4d9de85c3c300650cb2df91b7b6edcd28
MD5 785db2ab3c06d9f83cada3a1248edd46
BLAKE2b-256 4059f79d17e2b3c4dc4cf2ad01f4dc5eac6332ced74d8f1163005a3bf6c495f5

See more details on using hashes here.

File details

Details for the file londonaicentre_oncoschema-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: londonaicentre_oncoschema-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 25.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Amazon Linux","version":"2023","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for londonaicentre_oncoschema-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f6a0e3afeb91cb8343310fa505ab63cffcd7e93ffd7c5ce73e4464e48f09e703
MD5 b41286762d5897c924f9b79a9a128e08
BLAKE2b-256 8a86ea72f72d5b32fd8723909815ffdf09a67e51d7eb7b3c3beb8151f8d9b049

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