public class TPTP3ProofProcessor extends Object
| Modifier and Type | Field and Description |
|---|---|
ArrayList<String> |
bindings |
ArrayList<ProofStep> |
proof |
String |
status |
| Constructor and Description |
|---|
TPTP3ProofProcessor() |
| Modifier and Type | Method and Description |
|---|---|
static void |
findTypesForSkolemTerms(TPTP3ProofProcessor tpp,
KB kb)
Return the most specific type for skolem variable.
|
String |
getInferenceType(String supportId) |
static void |
main(String[] args) |
static ArrayList<String> |
parseAnswerTuples(String st,
KB kb,
FormulaPreprocessor fp)
Return a list of answers if E finds bindings for wh- queries.
|
ArrayList<Integer> |
parseInferenceObject(String supportId) |
static TPTP3ProofProcessor |
parseProofOutput(ArrayList<String> lines,
KB kb)
Compute binding and proof from E's response
|
static TPTP3ProofProcessor |
parseProofOutput(LineNumberReader lnr,
KB kb)
Compute bindings and proof from E's response
|
static TPTP3ProofProcessor |
parseProofOutput(String st,
KB kb) |
ProofStep |
parseProofStep(String line)
Parse a step like the following into its constituents
fof(c_0_5, axiom, (s__subclass(s__Artifact,s__Object)), c_0_3).
|
ArrayList<Integer> |
parseSupports(String supportId)
Parse support / proof statements in E's response
|
void |
printAnswers()
Print out E's bindings
|
void |
processAnswers(String line)
Return bindings from E's answer tuples
|
static void |
testE() |
static void |
testParseProofFile() |
static void |
testParseProofStep() |
String |
toString()
Convert bindings in list to string
|
static String |
trimBrackets(String line)
Remove brackets if it contains
|
static String |
trimParens(String line)
Remove parentheses if it contains
|
public String status
public String toString()
public ArrayList<Integer> parseSupports(String supportId)
public ProofStep parseProofStep(String line)
public void processAnswers(String line)
public static void findTypesForSkolemTerms(TPTP3ProofProcessor tpp, KB kb)
tpp - The structure learned from E's responsekb - The knowledge base used to find skolem term's types
For example,
original binding = esk3_0
set binding = "An instance of Human" (Human is the most specific
type for esk3_0 in the given proof)
original binding = esk3_1
set binding = "An instance of Human, Agent" (If multiple types
are found for esk3_1)public void printAnswers()
public static TPTP3ProofProcessor parseProofOutput(LineNumberReader lnr, KB kb)
public static TPTP3ProofProcessor parseProofOutput(ArrayList<String> lines, KB kb)
public static ArrayList<String> parseAnswerTuples(String st, KB kb, FormulaPreprocessor fp)
public static TPTP3ProofProcessor parseProofOutput(String st, KB kb)
public static void testParseProofFile()
public static void testE()
public static void testParseProofStep()
public static void main(String[] args)
Copyright © 2015. All rights reserved.