Skip to main content

Training a transformer model for language

Project description

Training a transformer model for language

Install

pip install tt4l

Usage

Tasks

find supported tasks

tt4l tasks
Args Task Name Short Description
text_classification Text Classification Text classification is a common NLP task that assigns a label or class to text.
token_classification Token Classification Token classification assigns a label to individual tokens in a sentence. One of the most common task is Named Entity Recognition (NER)。
universal_information_extraction Universal Information Extraction The Unified Information Extraction Framework (UIE) for general information extraction achieves unified modeling of tasks such as entity extraction, relationship extraction, event extraction, and sentiment analysis, and enables good transferability and generalization ability between different tasks.

Show task description.
tt4l desc [TASK_TYPE] Eg:

tt4l desc text_classification

init task config file

tt4l init [TASK_TYPE]

Eg:

tt4l init text_classification

Modify the corresponding configuration

Train

tt4l train [TASK_TYPE]

Eg:

tt4l train text_classification_task.yaml

Predict

tt4l predict [YAML]

Eg:

tt4l predict text_classification_task.yaml

Inference

tt4l inference [TASK_TYPE] [*args]

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

tt4l-0.0.4.tar.gz (99.5 kB view details)

Uploaded Source

Built Distribution

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

tt4l-0.0.4-py3-none-any.whl (94.2 kB view details)

Uploaded Python 3

File details

Details for the file tt4l-0.0.4.tar.gz.

File metadata

  • Download URL: tt4l-0.0.4.tar.gz
  • Upload date:
  • Size: 99.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.10.14 Linux/4.15.0-213-generic

File hashes

Hashes for tt4l-0.0.4.tar.gz
Algorithm Hash digest
SHA256 a44314201026f1e366557f97662b824d60428c0e4ba320320a20d66e5bc1d2cf
MD5 f5832198bb2e95a1a2054180a35adea4
BLAKE2b-256 19a5dc92a367c75f872322430f7124f33bd7af8736b4227044fa44de4644f545

See more details on using hashes here.

File details

Details for the file tt4l-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: tt4l-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 94.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.10.14 Linux/4.15.0-213-generic

File hashes

Hashes for tt4l-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 1c5029d12c6c3bb3673c8b5f31be54c697f7f94c1f7300663e90740c90af66c0
MD5 663e911f71951270be09bf72ff57d1dd
BLAKE2b-256 b19f547d871de7c63c9dfceeab384669266ff46ad3f96cf7cdacb1d97615ccb7

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