class_docstr: a ``Predictor`` is a thin wrapper around an AllenNLP model that handles JSON -> JSON predictions
  that can be used for serving models through the web API or making predictions in bulk.
class_docstr_tok: ["a","``","Predictor","``","is","a","thin","wrapper","around","an","AllenNLP","model","that","handles","JSON","-",">","JSON","predictions","that","can","be","used","for","serving","models","through","the","web","API","or","making","predictions","in","bulk","."]
docstr: Instantiate a :class:`Predictor` from an archive path.
  
  If you need more detailed configuration options, such as running the predictor on the GPU,
  please use `from_archive`.
  
  Parameters
  ----------
  archive_path The path to the archive.
  
  Returns
  -------
  A Predictor instance.
docstr_tok: ["Instantiate","a",":","class",":","`","Predictor","`","from","an","archive","path",".","If","you","need","more","detailed","configuration","options",",","such","as","running","the","predictor","on","the","GPU",",","please","use","`","from_archive","`",".","Parameters","--","--","--","--","--","archive_path","The","path","to","the","archive",".","Returns","--","--","--","-","A","Predictor","instance","."]
code: def from_path(cls, archive_path, predictor_name=None):
      """
      Instantiate a :class:`Predictor` from an archive path.
  
      If you need more detailed configuration options, such as running the predictor on the GPU,
      please use `from_archive`.
  
      Parameters
      ----------
      archive_path The path to the archive.
  
      Returns
      -------
      A Predictor instance.
      """
      return Predictor.from_archive(
          load_archive(archive_path), predictor_name
      )
  
imports: from __future__ import absolute_import
  import json
  from allennlp.common import Registrable
  from allennlp.common.checks import ConfigurationError
  from allennlp.common.util import JsonDict, sanitize
  from allennlp.data import DatasetReader, Instance
  from allennlp.models import Model
  from allennlp.models.archival import load_archive
label_desc: Use image node_id 10 for calling the Predictor obj's underlying member method code with example usage: obj.from_path(cls, archive_path, predictor_name) and returns: Predictor