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","."]
code: def __init__(self, model, dataset_reader):
      super(WikiTablesParserPredictor, self).__init__(
          model, dataset_reader
      )
      # Load auxiliary sempre files during startup for faster logical form execution.
      os.makedirs(SEMPRE_DIR, exist_ok=True)
      abbreviations_path = os.path.join(SEMPRE_DIR, "abbreviations.tsv")
      if not os.path.exists(abbreviations_path):
          run("wget {ABBREVIATIONS_FILE}", shell=True)
          run(
              "mv wikitables-abbreviations.tsv {abbreviations_path}",
              shell=True,
          )
  
      grammar_path = os.path.join(SEMPRE_DIR, "grow.grammar")
      if not os.path.exists(grammar_path):
          run("wget {GROW_FILE}", shell=True)
          run("mv wikitables-grow.grammar {grammar_path}", shell=True)
  
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 1 to create a new WikiTablesParserPredictor object from inherited base classes: Predictor with example: obj = WikiTablesParserPredictor(model, dataset_reader)