1
0
mirror of https://github.com/QData/TextAttack.git synced 2021-10-13 00:05:06 +03:00

Added loggers and attack and goal function results

This commit is contained in:
k-ivey
2020-05-15 10:59:28 -04:00
parent dcc4b06fe2
commit 1317768f64
9 changed files with 93 additions and 20 deletions

View File

@@ -9,6 +9,7 @@ from textattack.shared import utils, validators
class GoalFunction:
"""
Evaluates how well a perturbed tokenized_text object is achieving a specified goal.
Args:
model: The PyTorch or TensorFlow model used for evaluation.
"""