TorchBlocks
A PyTorch-based toolkit for natural language processing
Requirements
- transformers>=4.1.1
- torch>=1.6.0
TorchBlocks requires Python 3.6+. We recommend installing TorchBlocks in a Linux or OSX environment.
Installation
Recommended (because of active development):
git clone https://github.com/situqingyun/torchblocks-chen.git
cd TorchBlocks
python setup.py install
Tutorials
- Tutorial 1 (text classification): task_text_classification_cola.py
- Tutorial 2 (siamese similarity): task_siamese_similarity_afqmc.py
- Tutorial 3 (sequence labeling): task_sequence_labeling_ner_crf.py
- Tutorial 4 (sentence similarity): task_sentence_similarity_lcqmc.py
- Tutorial 5 (triple similarity): task_triple_similarity_epidemic.py
- Example scripts for each task: TorchBlocks/examples/
Release files for torchblocks-chen 1.0.1.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| torchblocks_chen-1.0.1.10.tar.gz | 94.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| torchblocks_chen-1.0.1.10-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:230.5 kB
Release files / torchblocks_chen-1.0.1.10.tar.gz
| Download URL | torchblocks_chen-1.0.1.10.tar.gz |
|---|---|
| Size | 94.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bb55f922065fbf522d8e2c59b9b4ddb7b46fbbbea2aeeee2409425b8338bde98
|
|
BLAKE2b-256 checksum How to use checksums |
490a5065964a1cc74d75f6fb19d210ba3c2b708646169819d33a9b7f503ab8ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.1.2.post20210112 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5
|
Release files / torchblocks_chen-1.0.1.10-py3-none-any.whl
| Download URL | torchblocks_chen-1.0.1.10-py3-none-any.whl |
|---|---|
| Size | 136.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8531b6c3c2387aba835168ee112a7257d6da86ed5f7a165ed00a7d8db3edda75
|
|
BLAKE2b-256 checksum How to use checksums |
a559d0949bc581154e23bff2da37f0e2ddefa5a5c9ec974a2f489907ccd058d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.1.2.post20210112 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5
|