CLTrier ProSem
Usage
from cltrier_prosem import Pipeline
# init pipeline object (load model, data, trainer)
pipeline = Pipeline({
'encoder': {
'model': 'deepset/gbert-base', # huggingface model slug
},
'dataset': {
'path': './path/data', # path to data directory (containing train/test.parquet)
'text_column': 'text', # column containing src text
'label_column': 'label', # column containing target label
'label_classes': ['class_1', 'class_2'], # list of target classes
},
'classifier': {
'hid_size': 512, # size of classifier perceptron
'dropout': 0.2, # dropout value
},
'pooler': {
'form': 'cls',
# type of pooling, possible values:
# 'cls', 'sent_mean', 'subword_{first|last|mean|min|max}'
# if subword probing used
'span_columns': ['span']
},
'trainer': {
'num_epochs': 5, # number of training epochs
'batch_size': 32, # batch size in both training and evaluation
'learning_rate': 1e-3, # trainer learning rate
'export_path': './path/output', # output path for logging and results
},
})
# call pipeline object (training and evaluation)
pipeline()
Release files for cltrier_prosem 0.4.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cltrier_prosem-0.4.3.tar.gz | 2.5 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cltrier_prosem-0.4.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:2.5 MB
Release files / cltrier_prosem-0.4.3.tar.gz
| Download URL | cltrier_prosem-0.4.3.tar.gz |
|---|---|
| Size | 2.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e0196b5f9380ed976f9a415434aa448fd5ec448b259be4b838b5bee556675f6f
|
|
BLAKE2b-256 checksum How to use checksums |
51538a5d8ff5b15af39d33c73d5286d562f3df7cf4a1f2e43de9a5b6e759e1c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.31.0
|
Release files / cltrier_prosem-0.4.3-py3-none-any.whl
| Download URL | cltrier_prosem-0.4.3-py3-none-any.whl |
|---|---|
| Size | 15.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a8f1361d0c1aeadb760a43367f34b2d5df4258716a31d4914548be0daa25d830
|
|
BLAKE2b-256 checksum How to use checksums |
df91d86ec9cc8c79edbd4cc7a69c959911e91ffe5f1f4faf9876aa7ba4c75eef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.31.0
|