sparv-sbx-word-prediction-kb-bert
Plugin for applying bert masking as a Sparv annotation.
Install
First, install Sparv, as suggested:
pipx install sparv-pipeline
Then install install sparv-sbx-word-prediction-kb-bert with
pipx inject sparv-pipeline sparv-sbx-word-prediction-kb-bert
Usage
Depending on how many explicit exports of annotations you have you can decide to use this
annotation exclusively by adding it as the only annotation to export under xml_export:
xml_export:
annotations:
- <token>:sbx_word_prediction_kb_bert.word-prediction--kb-bert
To use it together with other annotations you might add it under export:
export:
annotations:
- <token>:sbx_word_prediction_kb_bert.word-prediction--kb-bert
...
Configuration
You can configure this plugin by the number of neighbours to generate.
Number of Neighbours
The number of neighbours defaults to 5 but can be configured in config.yaml:
sbx_word_prediction_kb_bert:
num_neighbours: 5
Number of Decimals
The number of decimals defaults to 3 but can be configured in config.yaml:
sbx_word_prediction_kb_bert:
num_decimals: 3
Metadata
Model
| Type | HuggingFace Model | Revision |
|---|---|---|
| Model | KBLab/bert-base-swedish-cased |
c710fb8dff81abb11d704cd46a8a1e010b2b022c |
| Tokenizer | same as Model | same as Model |
Changelog
This project keeps a changelog.
Metadata
Release files for sparv-sbx-word-prediction-kb-bert 0.6.1
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 |
|---|---|---|---|---|
| sparv_sbx_word_prediction_kb_bert-0.6.1.tar.gz | 13.4 kB | With provenance | Details for sparv_sbx_word_prediction_kb_bert-0.6.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sparv_sbx_word_prediction_kb_bert-0.6.1-py3-none-any.whl | Python 3 | none | any | Details for sparv_sbx_word_prediction_kb_bert-0.6.1-py3-none-any.whl |
Total release size: 20.7 kB
Release files / sparv_sbx_word_prediction_kb_bert-0.6.1.tar.gz
| Download URL | sparv_sbx_word_prediction_kb_bert-0.6.1.tar.gz |
|---|---|
| Size | 13.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
592a5af0245d3e3b676bf7564ae0bb0e24e770863c9f3b053d9ce732e887eba1
|
|
BLAKE2b-256 checksum How to use checksums |
d6d039dd808b12dc1a9d54f20d084b82993389ac00831d292874e30b062a1e46
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2024.
Transparency logRelease files / sparv_sbx_word_prediction_kb_bert-0.6.1-py3-none-any.whl
| Download URL | sparv_sbx_word_prediction_kb_bert-0.6.1-py3-none-any.whl |
|---|---|
| Size | 7.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
09924569fed41f8a1c8440352df43c2f3810feeda83043bee6867a5312d3731e
|
|
BLAKE2b-256 checksum How to use checksums |
83af24b89777428ebf2ed4fdba74aca5bf324a4334cf545f6df503cf03736f33
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2024.
Transparency logSecurity for sparv-sbx-word-prediction-kb-bert 0.6.1
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for sparv_sbx_word_prediction_kb_bert-0.6.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2024.
Transparency logA 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.