Skip to main content

Turning free form text into structured tables

Project description

Trallie - Transfer Learning for Information Extraction

Image description

Apache 2.0 License LinkedIn Stars Python 3.10

Trallie (“Transfer learning for information extraction”) boosts Information Extraction (IE) for search among textual asset descriptions by doing away with costly human annotation, instead leveraging LLM capabilities to follow NL guidelines, understand labels, and manipulate NL like it does for code.

Problem: Natural language descriptions of assets and resources are here to stay, both as legacy or as flexible catch-alls. Clustering and categorizing them to run structured search queries traditionally requires information extraction (IE), with some partial solutions offered by RAG and dense embedding matching. This often is bottlenecked by costly human annotation, if only to provide few-shot examples of categories.

Ambition: Trallie brings transfer learning and world understanding afforded by LLM to make information extraction agile. We deliver multilingual, IE-fine-tuned checkpoints of various open model architectures; and for reproducibility, our full fine-tuning recipe including prompt templates.

Impact: Transfer learning and natural language input imply impact on legacy and low-resource scenarios, improving discoverability of hidden asset collections, plurality of sources through easier access to search tools, improved trust and privacy.

Team: At Pi School, our experience of rapid prototyping in AI, acquired over >100 AI projects, gives us an advantage in exploiting the rapidly moving SOTA.

Getting Started

  1. Clone the repository
git clone https://github.com/PiSchool/trallie.git
  1. Change you directory to that of the trallie repository.

  2. Install required dependencies

pip install -r requirements.txt
  1. Run the script main_pipeline.py
python main_pipeline.py

Visit the project wiki to read the detailed documentation.

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

trallie-0.1.1.tar.gz (1.4 MB view details)

Uploaded Source

Built Distribution

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

trallie-0.1.1-py3-none-any.whl (37.8 kB view details)

Uploaded Python 3

File details

Details for the file trallie-0.1.1.tar.gz.

File metadata

  • Download URL: trallie-0.1.1.tar.gz
  • Upload date:
  • Size: 1.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.16

File hashes

Hashes for trallie-0.1.1.tar.gz
Algorithm Hash digest
SHA256 735f8f350ae847ed0e0d330732f265ee6c3534c2d83c05607cebb6ec4b9bbd3d
MD5 4c7dbb582c88c238d0a308a7cb220066
BLAKE2b-256 de88d0804d64eb18eced01d803885929bd4d525a6ee128e63112964a1f820385

See more details on using hashes here.

File details

Details for the file trallie-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: trallie-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 37.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.16

File hashes

Hashes for trallie-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d3c65e55f7a9d661604120d37db2210a9a4a3c2f43addb75712efde524151ff0
MD5 0a8888bee3dde4aefc38943b47125dad
BLAKE2b-256 4aac4550ea2eca88a9300846b50763470ae040ee8d797a97675503d0bc586eba

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