class_docstr: Wrapper for the
  :class:`~allennlp.models.encoder_decoders.wikitables_semantic_parser.WikiTablesSemanticParser`
  model.
class_docstr_tok: ["Wrapper","for","the",":","class",":","`","~allennlp.models.encoder_decoders.wikitables_semantic_parser.WikiTablesSemanticParser","`","model","."]
docstr: Expects JSON that looks like ``{"question": "...", "table": "..."}``.
docstr_tok: ["Expects","JSON","that","looks","like","``","{","``","question","''",":","``","...","''",",","``","table","''",":","``","...","''","}","``","."]
code: def _json_to_instance(self, json_dict):
      """
      Expects JSON that looks like ``{"question": "...", "table": "..."}``.
      """
      question_text = json_dict["question"]
      table_rows = json_dict["table"].split("\n")
  
      # pylint: disable=protected-access
      tokenized_question = self._dataset_reader._tokenizer.tokenize(question_text.lower())  # type: ignore
      # pylint: enable=protected-access
      instance = self._dataset_reader.text_to_instance(
          question_text,  # type: ignore
          table_rows,
          tokenized_question=tokenized_question,
      )
      return instance
  
file_path: magnitude/pymagnitude/third_party/allennlp/predictors/wikitables_parser.py
imports: from __future__ import with_statement
  from __future__ import absolute_import
  from builtins import str
  import os
  import pathlib
  import shutil
  from allennlp.common.file_utils import cached_path
  from allennlp.common.util import JsonDict, sanitize
  from allennlp.data import DatasetReader, Instance
  from allennlp.models import Model
  from allennlp.predictors.predictor import Predictor
  from io import open
label_desc: Use image node_id 2 for calling the WikiTablesParserPredictor obj's underlying member method code with example usage: obj._json_to_instance(json_dict) and returns: instance