From 00f74ae72c889c5b683ce0ebe8325ae25a40aec4 Mon Sep 17 00:00:00 2001 From: David McClosky Date: Fri, 24 Oct 2014 14:49:28 -0400 Subject: [PATCH] Python READMEs: fix docs for load_reranker_model --- README-python.rst | 2 +- python/bllipparser/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README-python.rst b/README-python.rst index 8328bdd..02fd1a9 100644 --- a/README-python.rst +++ b/README-python.rst @@ -71,7 +71,7 @@ You can also load parser and reranker models manually:: >>> rrp = RerankingParser() >>> rrp.load_parser_model('/tmp/models/WSJ/parser') - >>> rrp.load_reranker_model('/tmp/models/WSJ/reranker') + >>> rrp.load_reranker_model('/tmp/models/WSJ/reranker/features.gz', '/tmp/models/WSJ/reranker/weights.gz') If you only want the top parse of a sentence in Penn Treebank format, use the ``simple_parse()`` method:: diff --git a/python/bllipparser/__init__.py b/python/bllipparser/__init__.py index 386a711..e301143 100644 --- a/python/bllipparser/__init__.py +++ b/python/bllipparser/__init__.py @@ -83,7 +83,7 @@ >>> rrp = RerankingParser() >>> rrp.load_parser_model('/tmp/models/WSJ/parser') - >>> rrp.load_reranker_model('/tmp/models/WSJ/reranker') + >>> rrp.load_reranker_model('/tmp/models/WSJ/reranker/features.gz', '/tmp/models/WSJ/reranker/weights.gz') If you only want the top parse of a sentence in Penn Treebank format, use the ``simple_parse()`` method::