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

Uploaded Python 3

File details

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

File metadata

  • Download URL: trallie-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 3c44d0e3270b21c7e3563394482b57018b27ab6bc59d4c4f3438e60cd5d192c5
MD5 da01525b355f4863a2fc4b7902b61f90
BLAKE2b-256 b01625b04614353d5d198e37d584b6a581f24867e5e65bb1421e86fa6798353b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: trallie-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 41.6 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 87fe270ae69cd71d264f816414f83c5cefeedca7c01e05e085d97e4def1ff9d6
MD5 98114deed6bd79896ab92eb213ba8f64
BLAKE2b-256 2c916db03c37ad2226cbb0541e8d9043a8b63369eb83a14dc85f3a8a6176f748

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