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

Uploaded Python 3

File details

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

File metadata

  • Download URL: trallie-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 00a8423afa28f01770ea0c3cd725c4cc493a804472457f1432b3c05b3a0d7ce1
MD5 feb677e8268b9a6e62a6b606cc06840f
BLAKE2b-256 1f458be5728d30cc81784204460126484453399845c8d40478867d153acf8a6b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: trallie-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 40.2 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e69f6ae114bce8eb2ddb6d88ea8b5617886c71f43228d9b32e6592f193159051
MD5 116c6ea805708da0306ac8ac9c3ee95f
BLAKE2b-256 63c5cd3f9cb00bbe1a7bdddb87592e03acef689ad62cda596e6e20c15476b962

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