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
Release history Release notifications | RSS feed
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.tar.gz
(61.0 kB
view details)
Built Distribution
tt4l-0.0.3-py3-none-any.whl
(91.6 kB
view details)
File details
Details for the file tt4l-0.0.3.tar.gz
.
File metadata
- Download URL: tt4l-0.0.3.tar.gz
- Upload date:
- Size: 61.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.9.18 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | df9091797836ab5e5cfc4329baeea663dae6ca30e6b107729701491dead7a0c1 |
|
MD5 | 2e4d0a44a0356b935ec04e104dff5497 |
|
BLAKE2b-256 | 2300e6cd6517d67f94188a92b5fabd28676fb5788eb77064fcee0d0e869a9ccb |
File details
Details for the file tt4l-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: tt4l-0.0.3-py3-none-any.whl
- Upload date:
- Size: 91.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.9.18 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a03656cf67a7b59357550032d2f8a512d2b2e690042a3c50bc7bc683ca43c3c |
|
MD5 | c0d4780cb0fc34779a684a409d51c654 |
|
BLAKE2b-256 | 011efac804c37ba975bce08a02caa1bd5f2d2b4d171b9451578af006ab0f4dfe |