Package com.tnsai.intelligence.knowledge
Interface ContradictionDetector.ConflictChecker
- Enclosing class:
ContradictionDetector
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Strategy for checking whether two facts conflict with each other.
-
Method Summary
Modifier and TypeMethodDescriptioncheckConflict(String existingFact, String incomingFact) Checks if two fact strings contradict each other.
-
Method Details
-
checkConflict
Checks if two fact strings contradict each other.- Parameters:
existingFact- the already-stored factincomingFact- the new fact being added- Returns:
- explanation of the conflict, or empty if no conflict
-