private SemanticSearcher createSearcher(String ruleBaseName,String automataFileName) {
        try {
            if (automataFileName != null)
                automataFileName = root + automataFileName;
            RuleBase ruleBase = RuleBase.createFromFile(root + ruleBaseName, automataFileName, new OpenNlpLinguistics());
            return new SemanticSearcher(ruleBase);
        } catch (Exception e) {
            throw new RuleBaseException("Initialization of rule base '" + ruleBaseName + "' failed", e);
        }
    }
Helper for testing with a rule base.
Replace subclassing of RuleBaseAbstractTestCase by this.

@author bratseth
container-search/src/test/java/com/yahoo/prelude/semantics/test/RuleBaseTester.java