Tx2

Latest version: v1.2.1

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

Scan your dependencies

1.2.1

Added
- Profiler script.

Changed
- Performance enhancements by using batch operations in hugging face and torch.
All interaction functions now need to support accepting an array of texts.
(The encoding function has changed as a result.)

Fixed
- Corrected bug in how summation is occuring in sort_salience_map() and added unit test.

1.1.0

Added
- Suggested dev_env.yml environment for contributors.
- API update to devices where "mps" is now checked in addition to "cuda".

Changed
- Stopwords will be from tx2 init rather than nltk download.
- Bumped package versions.
- Specified package versions in requirements and setup.py.
- Updating example jupyter notebooks to use new versions of packages.
- Datasources in jupyter example notebooks.

Fixed
- Updated to patched numpy version 1.22.
- Potential issue in calc.frequent_words_in_cluster() where clusters of empty
string values would stop computation.

1.0.2

Fixed
- Wrapper function still expecting pandas series instead of numpy array.
- Missing nltk.download("stopwords").

1.0.1

Added
- Example notebook demonstrating using TX2 with a huggingface model with
sequence classification head, rather than a custom torch implementation.
- Pre-commit hooks.

Changed
- Add support for huggingface sequence classification head to default
interaction functions.

Fixed
- Code formatting to fix flake8-indicated issues.

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.