#NEWLINE# @ classmethod #NEWLINE# def from_unified_model_dir( this_class , model_dir , parser_options = None , reranker_options = None ) : #NEWLINE# #INDENT# '\n        Create a ``BllipParser`` object from a unified parsing model\n        directory. Unified parsing model directories are a standardized\n        way of storing BLLIP parser and reranker models together on disk.\n        See ``bllipparser.RerankingParser.get_unified_model_parameters()``\n        for more information about unified model directories.\n\n        :return: A ``BllipParser`` object using the parser and reranker\n        models in the model directory.\n\n        :param model_dir: Path to the unified model directory.\n        :type model_dir: str\n        :param parser_options: optional dictionary of parser options, see\n        ``bllipparser.RerankingParser.RerankingParser.load_parser_options()``\n        for more information.\n        :type parser_options: dict(str)\n        :param reranker_options: optional dictionary of reranker options, see\n        ``bllipparser.RerankingParser.RerankingParser.load_reranker_model()``\n        for more information.\n        :type reranker_options: dict(str)\n        :rtype: BllipParser\n        ' #NEWLINE# ( parser_model_dir , reranker_features_filename , reranker_weights_filename ) = get_unified_model_parameters ( model_dir ) #NEWLINE# return this_class ( parser_model_dir , reranker_features_filename , reranker_weights_filename , parser_options , reranker_options )