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.1.tar.gz (60.3 kB view details)

Uploaded Source

Built Distribution

tt4l-0.0.1-py3-none-any.whl (90.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tt4l-0.0.1.tar.gz
  • Upload date:
  • Size: 60.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.9.18 Windows/10

File hashes

Hashes for tt4l-0.0.1.tar.gz
Algorithm Hash digest
SHA256 75ef68ae81302fc472730d16db547b431d117fee21ef3f7299a0d6141df0ef33
MD5 f90d5c57e12692373a8f88b0be35fb99
BLAKE2b-256 871e9ab5f498c238167b1a88ebdce0db27b00afe13c24342c526dcc87ca15f7d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tt4l-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 90.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.9.18 Windows/10

File hashes

Hashes for tt4l-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 63d969f252721a26a3c15cd6c6a0e947c40c4cc19f504438ac37ebb3cb98246e
MD5 96bdb88f013f1f6a8ac8b0c8b1cefc6b
BLAKE2b-256 88e598021459d26fe49284ac80ab5a7396c9f33db165be7ba0197a6ec1eb082e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page