nltk.BllipParser.__init__

BllipParser.__init__(parser_model=None, reranker_features=None, reranker_weights=None, parser_options=None, reranker_options=None)[source]

Load a BLLIP Parser model from scratch. You’ll typically want to use the from_unified_model_dir() class method to construct this object.

Parameters:
  • parser_model (str) – Path to parser model directory
  • reranker_features (str) – Path the reranker model’s features file
  • reranker_weights (str) – Path the reranker model’s weights file
  • parser_options – optional dictionary of parser options, see

bllipparser.RerankingParser.RerankingParser.load_parser_options() for more information. :type parser_options: dict(str)

Parameters:reranker_options – optional

dictionary of reranker options, see bllipparser.RerankingParser.RerankingParser.load_reranker_model() for more information. :type reranker_options: dict(str)