class_docstr: Transforms an input by replacing its words with antonym provided by WordNet.
  Download nltk_data before running.
  
  Just support adj pos word antonym replace.
docstr: Returns a list containing all possible words with 1 character replaced
  by a homoglyph.
docstr_tok: ["Returns","a","list","containing","all","possible","words","with","1","character","replaced","by","a","homoglyph","."]
code: def _get_candidates(self, word, n=5, pos=None, **kwargs):
      r"""
      Returns a list containing all possible words with 1 character replaced
      by a homoglyph.
  
      """
      candidates = set()
      # filter different pos in get_wsd function
      antonyms = self.processor.get_antonyms([(word, pos)])[0]
  
      for antonym in antonyms:
          for ant_word in antonym.lemma_names(lang=self.language):
              if (ant_word != word) and ("_" not in ant_word):
                  # WordNet can suggest phrases that are joined by '_' but we
                  # ignore phrases.
                  candidates.add(ant_word)
  
      if not candidates:
          return []
  
      return list(candidates)[:n]
  
imports: from ...transformation import WordSubstitute
label_desc: Use image node_id 3 for calling the SwapAntWordNet obj's underlying member method code with example usage: obj._get_candidates(word, n, pos) and returns: list, list