From fa1b43ebba39684af7b2a23576e5b1f3a31c3a6b Mon Sep 17 00:00:00 2001 From: Gabor Recski Date: Fri, 20 Mar 2015 13:15:06 +0100 Subject: [PATCH] added ejml to the list of jars so that it is available for the RNN parser, also added a #-prefixed line to default.properties that can be used to choose the RNN model over the default PCFG modified: corenlp.py modified: default.properties --- corenlp.py | 1 + default.properties | 3 +++ 2 files changed, 4 insertions(+) diff --git a/corenlp.py b/corenlp.py index 753e51c..bec9581 100644 --- a/corenlp.py +++ b/corenlp.py @@ -134,6 +134,7 @@ def __init__(self, corenlp_path=None): """ jars = ["stanford-corenlp-3.4.1.jar", "stanford-corenlp-3.4.1-models.jar", + "ejml-0.23.jar", # required by RNN model "joda-time.jar", "xom.jar", "jollyday.jar"] diff --git a/default.properties b/default.properties index e069ea9..f36a7fc 100644 --- a/default.properties +++ b/default.properties @@ -31,6 +31,9 @@ annotators = tokenize, ssplit, pos, lemma, ner, parse, dcoref #nfl.entity.model = /scr/nlp/data/ldc/LDC2009E112/Machine_Reading_P1_NFL_Scoring_Training_Data_V1.2/models/nfl_entity_model.ser #printable.relation.beam = 20 +#use the RNN parser +#parse.model = edu/stanford/nlp/models/lexparser/englishRNN.ser.gz + #parser.model = /u/nlp/data/lexparser/englishPCFG.ser.gz #srl.verb.args=/u/kristina/srl/verbs.core_args