<commit_before>/**
 * Copyright 2010 <NAME>
 * 
 * Licensed under the Apache License, Version 2.0 
 * (the "License"); You may not use this file except 
 * in compliance with the License. You may obtain a 
 * copy of the License at http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, 
 * software distributed under the License is distributed on an 
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, 
 * either express or implied. See the License for the specific 
 * language governing permissions and limitations under the 
 * License.
 * 
 */
package org.dlw.ai.blackboard.knowledge;

import java.util.ArrayList;

import org.dlw.ai.blackboard.domain.Sentence;
import org.dlw.ai.blackboard.rule.Rule;

/**
 * This interface provides service hooks for loading rules and
 * then providing evaluation of problems using these rules for
 * objects similar and including the {@link KnowledgeSource}
 * 
 * @author dlwhitehurst
 * @version 1.0.0-RC
 *
 */
public interface InferenceEngine {

    /**
     * Public method to evaluate the blackboard model domain problem and offer
     * assumptions or assertions
     */
    void evaluate(Sentence sentence);

    /**
     * Public method to implement a list of rules to be used for
     * evaluation
     * 
     * @param rules
     *            the {@link java.util.ArrayList} containing rules
     */
    void loadRules(ArrayList<Rule> rules);

}<commit_msg>removed loadRules() specification<commit_after>/**
 * Copyright 2010 <NAME>
 * 
 * Licensed under the Apache License, Version 2.0 
 * (the "License"); You may not use this file except 
 * in compliance with the License. You may obtain a 
 * copy of the License at http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, 
 * software distributed under the License is distributed on an 
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, 
 * either express or implied. See the License for the specific 
 * language governing permissions and limitations under the 
 * License.
 * 
 */
package org.dlw.ai.blackboard.knowledge;

import org.dlw.ai.blackboard.domain.Sentence;

/**
 * This interface provides service hooks for loading rules and
 * then providing evaluation of problems using these rules for
 * objects similar and including the {@link KnowledgeSource}
 * 
 * @author dlwhitehurst
 * @version 1.0.0-RC
 *
 */
public interface InferenceEngine {

    /**
     * Public method to evaluate the blackboard model domain problem and offer
     * assumptions or assertions
     */
    void evaluate(Sentence sentence);

}
{'fraction_non_alphanumeric': 0.08042089440060128, 'fraction_numerical': 0.008267568583239383, 'mean_word_length': 3.363934426229508, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2143452', 'n_tokens_mistral': 716, 'n_tokens_neox': 668, 'n_words': 299}