Wtpsplit

Latest version: v1.3.0

Safety actively analyzes 627763 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 4

1.3.0

- Fix a bug affecting some hash embeddings of the `canine-*` models which reduced accuracy (please upgrade to this version!).
- Add a guide on adapting to your custom data: https://github.com/bminixhofer/wtpsplit#advanced-usage.

1.2.3

- fix error with text where length is not a multiple of 4 and shorter than 512 characters in `canine-s-*` models (98).

1.2.2

- add `strip_whitespace` flag.
- fix bug with some zero-length sentences being returned if there is lots of trailing whitespace.

1.2.1

- fix argument propagation from model wrapper (95 97)

1.2.0

- Speed up pre- & postprocessing via better vectorization (94).
- Proper onnxruntime support for the `wtp-bert-*` models, although onnx models are currently not much faster (or even slower) than PyTorch models for some reason. Will continue to look into that.
- Adds missing `pandas` requirement (fixing 92).
- Lower bounds on `transformers` and other requirements to make sure all the functionality we need is there.
- Removes `torch` from requirements since users will want to install it themselves depending on their hardware setup, and it's not required anymore when using only the onnx models.

1.1.0

- Added missing `get_threshold` function
- `wtp.split` adapted to some style now also allows changing the threshold via `wtp.split(..., threshold=threshold)`. Was previously overwritten by the default.

Page 1 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.