Textmentations

Latest version: v1.1.0

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

Scan your dependencies

1.1.0

Breaking changes
- Renamed util functions (split_\*, join_\*)
- Added "_" at the beginning of functions (to make private) in `functional.py` except for functions used `transforms.py`

New augmentations
- [BackTranslation](https://github.com/Jaesu26/textmentations/blob/v1.1.0/textmentations/augmentations/transforms.py#L73) - Back-translates the input text by translating it to the target language and then back to the original.

Minor changes
- Added more tests
- Speed up (Use list comprehension: `RandomInsertion`, `AEDA`)
- Applied isort, black

1.0.1

1.0.0

- v0.0.3 and v1.0.0 are identical.
- v0.0.3 has many breaking chages, so v0.0.3 -> v1.0.0.

0.0.3

Breaking changes
- Renamed all transforms. (please see a list of augmentations in README.md)
- Renamed `*_probability` parameter to `*_prob`.

Bug fixes
- Added `typing-extension` in install requirements.

New augmentations
- [`AEDA`](https://github.com/Jaesu26/textmentations/blob/v0.0.3/textmentations/augmentations/transforms.py#L12) - Randomly inserts punctutaions in the input text.
- [`RandomInsertion`](https://github.com/Jaesu26/textmentations/blob/v0.0.3/textmentations/augmentations/transforms.py#L199) - Repeats n times the task of randomly inserting synonyms in the input text.

Minor changes
- The punctuation marks in the text only treat periods.
- All transforms now deal only with synonyms of words that are not stop words.
- Improved type annotation.

0.0.2

Minor Changes

- [`RandomSwapWords`](https://github.com/Jaesu26/textmentations/blob/v0.0.2/textmentations/augmentations/transforms.py/#L129) and [`RandomSwapSentences`](https://github.com/Jaesu26/textmentations/blob/v0.0.2/textmentations/augmentations/transforms.py/#L157) now support `n_times` parameter for multiple exchanges.

0.0.1

Initial release

Please refer to README.md.

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.