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.3.post1.tar.gz (61.1 kB view details)

Uploaded Source

Built Distribution

tt4l-0.0.3.post1-py3-none-any.whl (91.7 kB view details)

Uploaded Python 3

File details

Details for the file tt4l-0.0.3.post1.tar.gz.

File metadata

  • Download URL: tt4l-0.0.3.post1.tar.gz
  • Upload date:
  • Size: 61.1 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.3.post1.tar.gz
Algorithm Hash digest
SHA256 5ed572a1c05fb83d037cdf33d63dea77bf9d2c02bf0d721934ab47f3f61b03de
MD5 14731b2cf5d0ef880dd7c6ed2402b34a
BLAKE2b-256 26c9ee87cd2c9cd31580fe1dcbddca8c8f995b2e9a11e87437f0a358c87750a7

See more details on using hashes here.

File details

Details for the file tt4l-0.0.3.post1-py3-none-any.whl.

File metadata

  • Download URL: tt4l-0.0.3.post1-py3-none-any.whl
  • Upload date:
  • Size: 91.7 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.3.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 0437e86d61dae4eff64519f3ce923cbba4c56749465c33705f35d9ab753428a6
MD5 4573c0238ff53c04b7082f0fefbc901c
BLAKE2b-256 575b6e0a66ffce98f35d7551b3c1729492b9ba189705d31ad5b46eeafc944e9b

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