A PyTorch-based toolkit for natural language processing
Project description
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/
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
torchblocks_chen-1.0.1.9.tar.gz
(94.3 kB
view details)
Built Distribution
File details
Details for the file torchblocks_chen-1.0.1.9.tar.gz
.
File metadata
- Download URL: torchblocks_chen-1.0.1.9.tar.gz
- Upload date:
- Size: 94.3 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 383b40b8efc07b515f57a20879014a7a436ebb6230ac9b45511ea9cc5018f892 |
|
MD5 | 9ffbe109fc9e105f3b63d9865ac0d18a |
|
BLAKE2b-256 | f00fc36494f8464c158b3be0f6a987cab245695bb6e1fa3b6c1b562a3383da87 |
File details
Details for the file torchblocks_chen-1.0.1.9-py3-none-any.whl
.
File metadata
- Download URL: torchblocks_chen-1.0.1.9-py3-none-any.whl
- Upload date:
- Size: 136.3 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | da2668ea43652848728f702bd5a721fcb4b3b77cd1e791a4ccf2b51190bf2428 |
|
MD5 | d57ac86d9b7a15de0a10014f67290722 |
|
BLAKE2b-256 | e541835b62f3ff9f2c60f3b49a7ecf2db6ba45a07bf354c4f4d2b4f501f32ad2 |