Skip to content

Commit

Permalink
format issue
Browse files Browse the repository at this point in the history
  • Loading branch information
qiyanjun committed Mar 1, 2022
1 parent 613362e commit 92374d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ class ThoughtVector(SentenceEncoder):
word_embedding (textattack.shared.AbstractWordEmbedding): The word embedding to use
"""

def __init__(
self, embedding=None, **kwargs
):
def __init__(self, embedding=None, **kwargs):
if embedding is None:
embedding = WordEmbedding.counterfitted_GLOVE_embedding()
if not isinstance(embedding, AbstractWordEmbedding):
Expand Down
7 changes: 1 addition & 6 deletions textattack/transformations/word_swaps/word_swap_embedding.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,7 @@ class WordSwapEmbedding(WordSwap):
>>> augmenter.augment(s)
"""

def __init__(
self,
max_candidates=15,
embedding=None,
**kwargs
):
def __init__(self, max_candidates=15, embedding=None, **kwargs):
super().__init__(**kwargs)
if embedding is None:
embedding = WordEmbedding.counterfitted_GLOVE_embedding()
Expand Down

0 comments on commit 92374d3

Please sign in to comment.