class_docstr: Transforms an input by Reverse gender or place names in sentences.
class_docstr_tok: ["Transforms","an","input","by","Reverse","gender","or","place","names","in","sentences","."]
docstr: Find the location and name to replace.
  
  :param list words: input sentence's tokens.
  :param int n: number of generated samples
  :return list change_pos: transformed pos list.
  :return list change_items: transformed items list.
docstr_tok: ["Find","the","location","and","name","to","replace",".",":","param","list","words",":","input","sentence","'s","tokens",".",":","param","int","n",":","number","of","generated","samples",":","return","list","change_pos",":","transformed","pos","list",".",":","return","list","change_items",":","transformed","items","list","."]
code: def _get_loc_change(self, words, words_indices, n):
      r"""
      Find the location and name to replace.
  
      :param list words: input sentence's tokens.
      :param int n: number of generated samples
      :return list change_pos: transformed pos list.
      :return list change_items: transformed items list.
  
      """
      change_pos = []
      change_items = []
  
      for i in range(len(words)):
          if (
              words[i] in self.loc2idx
              and self.loc2idx[words[i]] not in self.prejudice_tendency
          ):
              change_pos.append(words_indices[i])
              change_items.append(random.sample(self.prejudice_data, n))
      return change_pos, change_items
  
file_path: textflint/textflint/generation/transformation/UTCN/cn_prejudice.py
imports: import random
  from ..transformation import Transformation
  from ....common.utils.list_op import descartes
  from ....common.utils.load import json_loader
  from ....common.utils.install import download_if_needed
  from ....common.settings import PREJUDICE_LOC2IDX, CN_NAME_PATH, CN_PREJUDICE_WORD_PATH, CN_LOC2IDX_PATH
label_desc: Use image node_id 5 for calling the CnPrejudice obj's underlying member method code with example usage: obj._get_loc_change(words, words_indices, n) and returns: change_pos,  change_items