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/lonePatient/TorchBlocks.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.0.tar.gz
(84.1 kB
view details)
Built Distribution
File details
Details for the file torchblocks_chen-1.0.0.tar.gz
.
File metadata
- Download URL: torchblocks_chen-1.0.0.tar.gz
- Upload date:
- Size: 84.1 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 | 84028b620c0c3f8af89f5676542ac2ef4aa8c66fc7fc32d4249dbbda5445ae42 |
|
MD5 | 2e680fd9e1c36945a295483003d64bb7 |
|
BLAKE2b-256 | 68448dde5cc700846b83178cb4db3fae3aef10bbc21d57d12f0f285c64943962 |
File details
Details for the file torchblocks_chen-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: torchblocks_chen-1.0.0-py3-none-any.whl
- Upload date:
- Size: 123.5 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 | ee5ffe73a0c90107c14a677049ff7e3b64931c7fd775b132d50c4dde9029b850 |
|
MD5 | 94d1ab6eec135c03fb1d6077fd471eca |
|
BLAKE2b-256 | 54e6ded21fd8d2500c3a36486a1212eaa2ebcc6cf25be88e4409f1cfdc7ef752 |