class_docstr: A class for handling data sets.
class_docstr_tok: ["A","class","for","handling","data","sets","."]
docstr: dataset_filepaths : dictionary with keys 'train', 'valid', 'test', 'deploy'
  Overwrites the data of type specified in dataset_types using the existing token_to_index, character_to_index, and label_to_index mappings. 
docstr_tok: ["dataset_filepaths",":","dictionary","with","keys","'train","'",",","'valid","'",",","'test","'",",","'deploy'","Overwrites","the","data","of","type","specified","in","dataset_types","using","the","existing","token_to_index",",","character_to_index",",","and","label_to_index","mappings","."]
code: def update_dataset(self, dataset_filepaths, dataset_types):
      """
      dataset_filepaths : dictionary with keys 'train', 'valid', 'test', 'deploy'
      Overwrites the data of type specified in dataset_types using the existing token_to_index, character_to_index, and label_to_index mappings.
      """
      for dataset_type in dataset_types:
          (
              self.labels[dataset_type],
              self.tokens[dataset_type],
              _,
              _,
              _,
          ) = self._parse_dataset(
              dataset_filepaths.get(dataset_type, None)
          )
  
      (
          token_indices,
          label_indices,
          character_indices_padded,
          character_indices,
          token_lengths,
          characters,
          label_vector_indices,
      ) = self._convert_to_indices(dataset_types)
  
      self.token_indices.update(token_indices)
      self.label_indices.update(label_indices)
      self.character_indices_padded.update(character_indices_padded)
      self.character_indices.update(character_indices)
      self.token_lengths.update(token_lengths)
      self.characters.update(characters)
      self.label_vector_indices.update(label_vector_indices)
  
file_path: NeuroNER/neuroner/dataset.py
imports: import sklearn.preprocessing
  import collections
  import codecs
  import os
  import pickle
  import random
  import re
  import time
  import token
  from neuroner import utils
  from neuroner import utils_nlp
label_desc: Use image node_id 4 for calling the Dataset obj's underlying member method code with example usage: obj.update_dataset(dataset_filepaths, dataset_types) without return types