Node expanderNode = expanders.get(modelID);
// Initialize retrieval environment variables.
QueryRunner runner = null;
MRFBuilder builder = null;
MRFExpander expander = null;
try {
// Get the MRF builder.
builder = MRFBuilder.get(env, modelNode.cloneNode(true));
// Get the MRF expander.
expander = null;
if (expanderNode != null) {
expander = MRFExpander.getExpander(env, expanderNode.cloneNode(true));
}
if (stopwords != null && stopwords.size() != 0) {
expander.setStopwordList(stopwords);
}
int numHits = XMLTools.getAttributeValue(modelNode, "hits", 1000);
LOG.info("number of hits: " + numHits);