class_docstr: Transforms an input by replacing its words by Glove.
  Offline Vocabulary contains top 17433 common words and its top 20 synonym.
class_docstr_tok: ["Transforms","an","input","by","replacing","its","words","by","Glove",".","Offline","Vocabulary","contains","top","17433","common","words","and","its","top","20","synonym","."]
docstr: Returns a list containing all possible words with 1 character replaced
  by word embedding.
  
  :param str word: token word to transform.
  :param str pos:
  :param int n: max number of candidates
  :return : candidates list
docstr_tok: ["Returns","a","list","containing","all","possible","words","with","1","character","replaced","by","word","embedding",".",":","param","str","word",":","token","word","to","transform",".",":","param","str","pos",":",":","param","int","n",":","max","number","of","candidates",":","return",":","candidates","list"]
code: def _get_candidates(self, word, pos=None, n=5):
      r"""
      Returns a list containing all possible words with 1 character replaced
      by word embedding.
  
      :param str word: token word to transform.
      :param str pos:
      :param int n: max number of candidates
      :return : candidates list
  
      """
      sim_list = self.word_in_sim_dic(word)
      sim_list = self.processor.filter_candidates_by_pos(
          (word, pos), sim_list
      )
  
      return self.sample_num(sim_list, n)
  
file_path: textflint/textflint/generation/transformation/UT/swap_syn_word_embedding.py
imports: from ...transformation import WordSubstitute
  from ....common.settings import EMBEDDING_PATH
  from ....common.utils.load import json_lines_loader
  from ....common.utils.install import download_if_needed
label_desc: Use image node_id 3 for calling the SwapSynWordEmbedding obj's underlying member method code with example usage: obj._get_candidates(word, pos, n) and returns: self