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

merge from master

This commit is contained in:
Jin Yong Yoo
2020-07-06 10:50:17 -04:00
110 changed files with 1622 additions and 648 deletions

View File

@@ -3,7 +3,11 @@ from abc import abstractmethod
from textattack.constraints import Constraint
<<<<<<< HEAD
class LanguageModelConstraint(Constraint):
=======
class LanguageModelConstraint(Constraint, ABC):
>>>>>>> master
"""
Determines if two sentences have a swapped word that has a similar
probability according to a language model.