public static RuleBase createFromString(String name, String ruleString, String automataFile, Linguistics linguistics)
            throws java.io.IOException, ParseException {
        RuleBase base = new RuleImporter(linguistics).importString(ruleString, automataFile);
        base.setName(name);
        return base;
    }
Creates a rule base from a string

@param  name the name of the rule base
@param  ruleString the rule string to read
@param  automataFile the automata file, or null to not use an automata
@throws java.io.IOException if there is a problem reading the automata file
@throws com.yahoo.prelude.semantics.parser.ParseException if the rule file can not be parsed correctly
@throws com.yahoo.prelude.semantics.RuleBaseException if the rule file contains inconsistencies
container-search/src/main/java/com/yahoo/prelude/semantics/RuleBase.java