class_docstr: WSDSample Class
class_docstr_tok: ["WSDSample","Class"]
docstr: Replace scope items of field value with items.
  :param str field: transformed field
  :param list index: indices of delete positions
  :param list items: insert items
  :param list pos_list: default none, list of pos for items
  :param list lemma_list: default none, list of lemma for items
  :return WSDSample: a modified sample
docstr_tok: ["Replace","scope","items","of","field","value","with","items",".",":","param","str","field",":","transformed","field",":","param","list","index",":","indices","of","delete","positions",":","param","list","items",":","insert","items",":","param","list","pos_list",":","default","none",",","list","of","pos","for","items",":","param","list","lemma_list",":","default","none",",","list","of","lemma","for","items",":","return","WSDSample",":","a","modified","sample"]
code: def replace_field_at_index(
      self, field, index, items, pos_list=None, lemma_list=None
  ):
      r"""
      Replace scope items of field value with items.
      :param str field: transformed field
      :param list index: indices of delete positions
      :param list items: insert items
      :param list pos_list: default none, list of pos for items
      :param list lemma_list: default none, list of lemma for items
      :return WSDSample: a modified sample
      """
      if pos_list is None and lemma_list is None:
          return self.replace_field_at_index(field, [index], [items])
      elif pos_list is None:
          return self.replace_field_at_index(
              field, [index], [items], lemma_list=[lemma_list]
          )
      elif lemma_list is None:
          return self.replace_field_at_index(
              field, [index], [items], pos_list=[pos_list]
          )
      else:
          return self.replace_field_at_index(
              field,
              [index],
              [items],
              pos_list=[pos_list],
              lemma_list=[lemma_list],
          )
  
imports: from .sample import Sample
  from ..field import TextField, ListField
  import json
  from ....common.settings import TASK_MASK, PUNC
  import nltk
label_desc: Use image node_id 19 for calling the WSDSample obj's underlying member method code with example usage: obj.replace_field_at_index(field, index, items, pos_list, lemma_list) and returns: self, self, self, self