Textattack

Latest version: v0.3.10

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

Scan your dependencies

Page 1 of 3

0.3.10

What's Changed
* Fix faster-alzantot recipe references by marcorosa in https://github.com/QData/TextAttack/pull/776
* Add back transcription augmentation method by skorzewski in https://github.com/QData/TextAttack/pull/767
* Polish dependencies and support python3.11 by marcorosa in https://github.com/QData/TextAttack/pull/780
* Update update_test_outputs.py by qiyanjun in https://github.com/QData/TextAttack/pull/781
* Add support for prompt augmentation by k-ivey in https://github.com/QData/TextAttack/pull/766
* Increase the swap file size of the GitHub actions runner by k-ivey in https://github.com/QData/TextAttack/pull/755
* Consistent word swap by k-ivey in https://github.com/QData/TextAttack/pull/752
* update docs with missing api by qiyanjun in https://github.com/QData/TextAttack/pull/757
* Typo corrections in installation docs by dmlls in https://github.com/QData/TextAttack/pull/759
* Do not use pipeline to achieve faster generation of Chinese mask repl… by liuyuyan2717 in https://github.com/QData/TextAttack/pull/778
* Rename BERT constraint to SBERT by k-ivey in https://github.com/QData/TextAttack/pull/763
* Word Swap Qwerty Failure Bug Fix by jstzwj in https://github.com/QData/TextAttack/pull/761
* disable tests while compute issues are resolved by jxmorris12 in https://github.com/QData/TextAttack/pull/779

New Contributors
* dmlls made their first contribution in https://github.com/QData/TextAttack/pull/759
* marcorosa made their first contribution in https://github.com/QData/TextAttack/pull/776
* liuyuyan2717 made their first contribution in https://github.com/QData/TextAttack/pull/778
* jstzwj made their first contribution in https://github.com/QData/TextAttack/pull/761
* skorzewski made their first contribution in https://github.com/QData/TextAttack/pull/767

**Full Changelog**: https://github.com/QData/TextAttack/compare/v0.3.9...v0.3.10

0.3.9

this release mainly is about
- 747 fixing CSVlogger missing df issue
- 748 reverting one goal_func change due to the "textattack attack" errors
- 719 extending textattack into Chinese language

What's Changed
* fix command help str :-) by jxmorris12 in https://github.com/QData/TextAttack/pull/703
* Clean up formatting in HTML tables by Arrrlex in https://github.com/QData/TextAttack/pull/707
* Extra quality metrics by gmurro in https://github.com/QData/TextAttack/pull/695
* format after 695 by jxmorris12 in https://github.com/QData/TextAttack/pull/710
* Extend Chinese Attack by Hanyu-Liu-123 in https://github.com/QData/TextAttack/pull/719
* add in tutorials and reference for Chinese Textattack by qiyanjun in https://github.com/QData/TextAttack/pull/744
* fix potential bug in the filter_by_labels_ method of the Dataset class by wenh06 in https://github.com/QData/TextAttack/pull/746
* Fixed a batch_size bug in attack_args.py by Falanke21 in https://github.com/QData/TextAttack/pull/735
* Fix the problem of text output from T5 model by plasmashen in https://github.com/QData/TextAttack/pull/709
* Bump transformers from 4.27.4 to 4.30.0 by dependabot in https://github.com/QData/TextAttack/pull/740
* Fixed syntax and import issues in the example of Attack API by eldorabdukhamidov in https://github.com/QData/TextAttack/pull/734
* hard label classification by cogeid in https://github.com/QData/TextAttack/pull/635
* fixing the csvlogger missing DF issues by qiyanjun in https://github.com/QData/TextAttack/pull/747
* Fix pytest errors - due to goal_func by qiyanjun in https://github.com/QData/TextAttack/pull/748
* format update by qiyanjun in https://github.com/QData/TextAttack/pull/749
* Stanza test and notebooks minor fix by qiyanjun in https://github.com/QData/TextAttack/pull/750

New Contributors
* Arrrlex made their first contribution in https://github.com/QData/TextAttack/pull/707
* gmurro made their first contribution in https://github.com/QData/TextAttack/pull/695
* Falanke21 made their first contribution in https://github.com/QData/TextAttack/pull/735
* eldorabdukhamidov made their first contribution in https://github.com/QData/TextAttack/pull/734

**Full Changelog**: https://github.com/QData/TextAttack/compare/v0.3.8...v0.3.9

0.3.8

689: Add more type annotations and do some code cleanup in AttackedText
notably removed some code that did Chinese word segmentation because it did not properly
support words_from_text, which caused issues with various transformations.

691: Optimize comparison between two AttackedText objects (thanks plasmashen!)

693: Fix bug with writing parameters twice in AttackedText (thanks 89x98!)

700: Lots of miscellaneous bug fixes and some helper function implementation

701: Fix bugs with loading TedTalk translation dataset, using T5, seq2sick/text-to-text goal functions

0.3.7

- Update dependency: `transformers>=4.21.0`
- Update dependency: `datasets==2.4.0`
- Update optional dependency: `sentence_transformers==2.2.0`
- Update optional dependency: `gensim==4.1.2`
- Update optional dependency: `tensorflow==2.7.0` (Thanks VijayKalmath !!!!)
- Miscellaneous fixes for new packages to update things and remove warning messages
- Fix logging attack args to W&B 647 (thanks VijayKalmath)
- Fix bug with word_swap_masked_lm 649 (thanks Hanyu-Liu-123)
- Fix small issues with `textattack train` 653 (thanks VijayKalmath)
- Fix issue with PWWS 654 (thanks VijayKalmath)
- Update recipe for FasterGeneticAlgorithm to match paper 656 (thanks VijayKalmath)
- Update adversarial dataset generation logic 657 (thanks VijayKalmath)
- Update dataset_args to correctly set dataset_split 659 (thanks VijayKalmath)
- Add logic for loading SQUAD via HuggingFaceDataset class 660 (thanks VijayKalmath)
- Fix ANSI color-printing 662
- Make GreedyWordSwapWIR and related search methods more query-efficient under the presence of pre-transformation constraints 665 and 674 (thanks VijayKalmath)
- Save attack summary table as JSON (thanks VijayKalmath -- great feature add!!)
- Fix typo and update numpy 671 and 672 (thanks JohnGiorgi -- and welcome!)
- Finish CLARE attack 675 (thanks Hanyu-Liu-123 and VijayKalmath)
- Add __repr__ for better user experience with GoalFunctionResult 676 (thanks VijayKalmath)
- Better exception handling in WordSwapChangeNumber ((thanks dangne -- and welcome!!)
- Various other typo and bug fixes

Thanks to everyone who contributed to TextAttack this summer, and a special shoutout once more to VijayKalmath for all the hard work and attention to detail. Glad to see TextAttack so healthy 🙂

0.3.5

- 644:
- Ability to specify device via `TA_DEVICE` env variable
- New constraint, `MaxNumWordsModified`
- Tracks previous AttackedText during attack to allow for reconstruction of chain of modifications
- Change`GreedyWordSwapWIR` to allow passing of specific unk token
- Formatting updates to new Black version
- fix Universal Sentence Encoder from TF breakage
- fix Flair to new API (thanks [VijayKalmath](https://github.com/QData/TextAttack/issues?q=is%3Apr+author%3AVijayKalmath) for the help!)
- Bump version to 0.3.5
- 623 Fix quotation bug, thanks donggrant
- 613 and others, fix dependencies
- 609 Only initialize embeddings when needed :) thanks to duesenfranz
- 591 fix a bug with CLARE

0.3.4

What's Changed
* [CODE] Keras parallel attack fix - Issue 499 by sanchit97 in https://github.com/QData/TextAttack/pull/515
* Bump tensorflow from 2.4.2 to 2.5.1 in /docs by dependabot in https://github.com/QData/TextAttack/pull/517
* Add a high level overview diagram to docs by cogeid in https://github.com/QData/TextAttack/pull/519
* readtheDoc fix by qiyanjun in https://github.com/QData/TextAttack/pull/522
* Add new attack recipe A2T by jinyongyoo in https://github.com/QData/TextAttack/pull/523
* Fix incorrect `__eq__` method of `AttackedText` in `textattack/shared/attacked_text.py` by wenh06 in https://github.com/QData/TextAttack/pull/509
* Fix a bug when running textattack eval with --num-examples=-1 by dangne in https://github.com/QData/TextAttack/pull/521
* New metric module to improve flexibility and intuitiveness - moved from 475 by sanchit97 in https://github.com/QData/TextAttack/pull/514
* Update installation.md to add FAQ on installation by qiyanjun in https://github.com/QData/TextAttack/pull/535
* Fix dataset-split bug by Hanyu-Liu-123 in https://github.com/QData/TextAttack/pull/533
* Update by Hanyu-Liu-123 in https://github.com/QData/TextAttack/pull/541
* add custom dataset API use example in doc by qiyanjun in https://github.com/QData/TextAttack/pull/543
* Fix logger initiation bug by Hanyu-Liu-123 in https://github.com/QData/TextAttack/pull/539
* Updated Tutorial 0 to use the Rotten Tomatoes dataset instead of the … by srujanjoshi in https://github.com/QData/TextAttack/pull/542
* Back translation transformation by cogeid in https://github.com/QData/TextAttack/pull/534
* Fixed a bug in the allennlp tutorial by donggrant in https://github.com/QData/TextAttack/pull/546
* Logger bug fix by ankitgv0 in https://github.com/QData/TextAttack/pull/551
* add "textattack[tensorflow]" option in all tutorials by qiyanjun in https://github.com/QData/TextAttack/pull/559
* Fix CLARE Extra Character Bug by Hanyu-Liu-123 in https://github.com/QData/TextAttack/pull/556
* Fix metric-module Issue532 by sanchit97 in https://github.com/QData/TextAttack/pull/540
* Add API docstrings for back translation by cogeid in https://github.com/QData/TextAttack/pull/563
* Fixed the "no attribute" error from 536 by ankitgv0 in https://github.com/QData/TextAttack/pull/552
* Enhance augment function by Hanyu-Liu-123 in https://github.com/QData/TextAttack/pull/531
* fix read-the-doc installation issue / clean up and add new docstrings for recently added classes/packages by qiyanjun in https://github.com/QData/TextAttack/pull/569

New Contributors
* wenh06 made their first contribution in https://github.com/QData/TextAttack/pull/509
* dangne made their first contribution in https://github.com/QData/TextAttack/pull/521
* srujanjoshi made their first contribution in https://github.com/QData/TextAttack/pull/542
* donggrant made their first contribution in https://github.com/QData/TextAttack/pull/546
* ankitgv0 made their first contribution in https://github.com/QData/TextAttack/pull/551

**Full Changelog**: https://github.com/QData/TextAttack/compare/v0.3.3...v0.3.4

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.