class_docstr: World representation for the WikitableQuestions domain.
  
  Parameters
  ----------
  table_graph : ``TableQuestionKnowledgeGraph``
      Context associated with this world.
class_docstr_tok: ["World","representation","for","the","WikitableQuestions","domain",".","Parameters","--","--","--","--","--","table_graph",":","``","TableQuestionKnowledgeGraph","``","Context","associated","with","this","world","."]
code: def _map_name(self, name, keep_mapping=False):
      if (
          name not in types.COMMON_NAME_MAPPING
          and name not in self.local_name_mapping
      ):
          if not keep_mapping:
              raise ParsingError("Encountered un-mapped name: {name}")
          if name.startswith("fb:row.row"):
              # Column name
              translated_name = "C%d" % self._column_counter
              self._column_counter += 1
              self._add_name_mapping(
                  name, translated_name, types.COLUMN_TYPE
              )
          elif name.startswith("fb:cell"):
              # Cell name
              translated_name = "cell:%s" % name.split(".")[-1]
              self._add_name_mapping(
                  name, translated_name, types.CELL_TYPE
              )
          elif name.startswith("fb:part"):
              # part name
              translated_name = "part:%s" % name.split(".")[-1]
              self._add_name_mapping(
                  name, translated_name, types.PART_TYPE
              )
          else:
              # The only other unmapped names we should see are numbers.
              # NLTK throws an error if it sees a "." in constants, which will most likely happen
              # within numbers as a decimal point. We're changing those to underscores.
              translated_name = name.replace(".", "_")
              if re.match("-[0-9_]+", translated_name):
                  # The string is a negative number. This makes NLTK interpret this as a negated
                  # expression and force its type to be TRUTH_VALUE (t).
                  translated_name = translated_name.replace("-", "~")
              translated_name = "num:{translated_name}"
              self._add_name_mapping(
                  name, translated_name, types.NUMBER_TYPE
              )
      else:
          if name in types.COMMON_NAME_MAPPING:
              translated_name = types.COMMON_NAME_MAPPING[name]
          else:
              translated_name = self.local_name_mapping[name]
      return translated_name
  
file_path: magnitude/pymagnitude/third_party/allennlp/semparse/worlds/wikitables_world.py
imports: from __future__ import absolute_import
  import re
  from nltk.sem.logic import Type
  from allennlp.semparse.worlds.world import ParsingError, World
  from allennlp.semparse.type_declarations import wikitables_type_declaration
  from allennlp.semparse.contexts import TableQuestionKnowledgeGraph
label_desc: Use image node_id 8 for calling the WikiTablesWorld obj's underlying member method code with example usage: obj._map_name(name, keep_mapping) and returns: translated_name