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/
Metadata
Release files for torchblocks 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| torchblocks-1.0.0.tar.gz | 81.1 kB | Without provenance | Details for torchblocks-1.0.0.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| torchblocks-1.0.0-py3.7.egg | Legacy Egg format | - | - | Details for torchblocks-1.0.0-py3.7.egg |
| torchblocks-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for torchblocks-1.0.0-py3-none-any.whl |
Total release size: 487.9 kB
Release files / torchblocks-1.0.0.tar.gz
| Download URL | torchblocks-1.0.0.tar.gz |
|---|---|
| Size | 81.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
92c4f299b37e198396ed0bee87f38a0278f83d858a2e8529c60b2fa2975298c4
|
|
BLAKE2b-256 checksum How to use checksums |
a8ea04f771f80dfb93be6de072dcfc0ab642efb14095c93963c437aed3c0d6af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.3
|
Release files / torchblocks-1.0.0-py3.7.egg
| Download URL | torchblocks-1.0.0-py3.7.egg |
|---|---|
| Size | 286.0 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
9faf2fe3664a11613151ca076b5e9a0c6fc2e0103b771086eb2dbbd85ad46e46
|
|
BLAKE2b-256 checksum How to use checksums |
bf0be36f830b25538f023e39043606ba637f8e0a4e9e071b67eb21401376689a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.3
|
Release files / torchblocks-1.0.0-py3-none-any.whl
| Download URL | torchblocks-1.0.0-py3-none-any.whl |
|---|---|
| Size | 120.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4a0575d17196f66d79ad9830c626d5f47ca878eb88d19ef0e5cf2884150e1c32
|
|
BLAKE2b-256 checksum How to use checksums |
411ccf410629fa59b6389ea430c9e5db7432b28b7746bc2d2c546fa0259f5a78
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.3
|
Security for torchblocks 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.