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]
Metadata
Release files for tt4l 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tt4l-0.0.4.tar.gz | 99.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tt4l-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 193.7 kB
Release files / tt4l-0.0.4.tar.gz
| Download URL | tt4l-0.0.4.tar.gz |
|---|---|
| Size | 99.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a44314201026f1e366557f97662b824d60428c0e4ba320320a20d66e5bc1d2cf
|
|
BLAKE2b-256 checksum How to use checksums |
19a5dc92a367c75f872322430f7124f33bd7af8736b4227044fa44de4644f545
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.5 CPython/3.10.14 Linux/4.15.0-213-generic
|
Release files / tt4l-0.0.4-py3-none-any.whl
| Download URL | tt4l-0.0.4-py3-none-any.whl |
|---|---|
| Size | 94.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1c5029d12c6c3bb3673c8b5f31be54c697f7f94c1f7300663e90740c90af66c0
|
|
BLAKE2b-256 checksum How to use checksums |
b19f547d871de7c63c9dfceeab384669266ff46ad3f96cf7cdacb1d97615ccb7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.5 CPython/3.10.14 Linux/4.15.0-213-generic
|