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.1.7.tar.gz
(94.2 kB
view details)
Built Distribution
File details
Details for the file torchblocks_chen-1.0.1.7.tar.gz
.
File metadata
- Download URL: torchblocks_chen-1.0.1.7.tar.gz
- Upload date:
- Size: 94.2 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 | c94c44475dc27eed6c382d7b51a5568e573c398d3896ad182ee2812c3d5a6d3f |
|
MD5 | d20330064cd01c44c6065c0babc5e2ad |
|
BLAKE2b-256 | 323c86a34eb7db43964827977d47e5fa6841055594d80f6cf64380196c60e39c |
File details
Details for the file torchblocks_chen-1.0.1.7-py3-none-any.whl
.
File metadata
- Download URL: torchblocks_chen-1.0.1.7-py3-none-any.whl
- Upload date:
- Size: 136.2 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 | e7960351b4b7859a6cd39acc3ee37b44e1429f1c890aacae4695f1f03a602941 |
|
MD5 | 43891fffcc9278e75bedbd85274b41b7 |
|
BLAKE2b-256 | ef982167c3d037b7d90878fb554b2e7a2290896008dd420f5d30b5c90835715d |