Public Member Functions | |
| void | disambiguateAction (Action action, List< String > prepositions, Instruction inst) throws AmbiguityException, InstructionException, UnknownHostException, CycApiException, IOException |
| void | disambiguateInstruction (SemanticObject so, String action, List< String > prepositions, Instruction inst) throws UnknownHostException, IOException, CycApiException, AmbiguityException, InstructionException |
| void | disambiguateInstructions (List< Instruction > instructions) throws AmbiguityException, InstructionException, UnknownHostException, CycApiException, IOException |
| void | disambiguateObject (ObjectX o, String action, Instruction inst) throws InstructionException, AmbiguityException, UnknownHostException, CycApiException, IOException |
| Disambiguator () | |
| IDisambiguationOracle | getDisambiguationOracle () |
| void | load (String fileName) throws Exception |
| void | save (String fileName) throws IOException |
| void | setDisambiguationOracle (IDisambiguationOracle oracle) |
| void | setRunMode (int mode) |
Static Public Attributes | |
| static int | MODE_APPLY = 0 |
| static int | MODE_TRAIN = 1 |
Private Attributes | |
| DisambiguatorKB | kb |
| IDisambiguationOracle | oracle = null |
| int | runMode |
Definition at line 19 of file Disambiguator.java.
Definition at line 30 of file Disambiguator.java.
| void instruction.disambiguator.Disambiguator.disambiguateAction | ( | Action | action, |
| List< String > | prepositions, | ||
| Instruction | inst | ||
| ) | throws AmbiguityException, InstructionException, UnknownHostException, CycApiException, IOException [inline] |
Trys to disambiguate the Action by asking OpenCyc, whether there is a meaning of the action that can be executed by the Robot.
| action |
| AmbiguityException | |
| InstructionException | |
| IOException | |
| CycApiException | |
| UnknownHostException |
Definition at line 177 of file Disambiguator.java.
| void instruction.disambiguator.Disambiguator.disambiguateInstruction | ( | SemanticObject | so, |
| String | action, | ||
| List< String > | prepositions, | ||
| Instruction | inst | ||
| ) | throws UnknownHostException, IOException, CycApiException, AmbiguityException, InstructionException [inline] |
Definition at line 84 of file Disambiguator.java.
| void instruction.disambiguator.Disambiguator.disambiguateInstructions | ( | List< Instruction > | instructions | ) | throws AmbiguityException, InstructionException, UnknownHostException, CycApiException, IOException [inline] |
Definition at line 64 of file Disambiguator.java.
| void instruction.disambiguator.Disambiguator.disambiguateObject | ( | ObjectX | o, |
| String | action, | ||
| Instruction | inst | ||
| ) | throws InstructionException, AmbiguityException, UnknownHostException, CycApiException, IOException [inline] |
Definition at line 216 of file Disambiguator.java.
Definition at line 39 of file Disambiguator.java.
| void instruction.disambiguator.Disambiguator.load | ( | String | fileName | ) | throws Exception [inline] |
Definition at line 58 of file Disambiguator.java.
| void instruction.disambiguator.Disambiguator.save | ( | String | fileName | ) | throws IOException [inline] |
Definition at line 53 of file Disambiguator.java.
| void instruction.disambiguator.Disambiguator.setDisambiguationOracle | ( | IDisambiguationOracle | oracle | ) | [inline] |
Definition at line 35 of file Disambiguator.java.
| void instruction.disambiguator.Disambiguator.setRunMode | ( | int | mode | ) | [inline] |
Definition at line 43 of file Disambiguator.java.
Definition at line 24 of file Disambiguator.java.
int instruction.disambiguator.Disambiguator.MODE_APPLY = 0 [static] |
Definition at line 21 of file Disambiguator.java.
int instruction.disambiguator.Disambiguator.MODE_TRAIN = 1 [static] |
Definition at line 22 of file Disambiguator.java.
IDisambiguationOracle instruction.disambiguator.Disambiguator.oracle = null [private] |
Definition at line 28 of file Disambiguator.java.
int instruction.disambiguator.Disambiguator.runMode [private] |
Definition at line 26 of file Disambiguator.java.