|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvn.Cyc.Match
private static class Cyc.Match
This class represents a match between a VerbNet verb-frame pair and a Cyc rule. This match could either be a match specified by the manual mapping file ( <tuple> or <tuple-m> elements) or a match found by the automatic matching algorithm. Here is an example match from the manual mapping file:
VerbNet Class: banish-10.2 Member: extradite Frame: Basic Transitive Example: "The king banished the general." Syntax: %Agent V %Theme Semantics: cause(Agent, E) location(start(E), Theme, ?Source) location(end(E), Theme, ?Destination) |
RULE #388 [Def](verbSemTrans Extradite-TheWord 0 TransitiveNPFrame (and (isa :ACTION Extradition) (performedBy :ACTION :SUBJECT) (transferredObject :ACTION :OBJECT))) |
Cyc.loadManualFile()
,
Cyc.findCycMatches(String, String, String, int, String)
Field Summary | |
---|---|
(package private) String |
cycRuleNum
The number of the Cyc rule involved in this match. |
(package private) String |
frame
A string representation of the VerbNet frame involved in the verb-frame pair. |
(package private) boolean |
isCorrectMatch
Whether or not a manual mapping match or an automatic match has a an equal match in the opposite group. |
(package private) boolean |
isManualClass
Whether or not the VerbNet class for this match is covered in the manual mapping file. |
(package private) boolean |
maybe
Whether or not this match object, if representing a manual mapping match, was listed as a maybe match (via the <tuple-m> element) inside the manual mapping file. |
(package private) String |
verb
The verb of this match. |
(package private) String |
vnClass
The VerbNet class to which the verb-frame pair in this match belongs. |
Constructor Summary | |
---|---|
Cyc.Match()
Constructs a Cyc.Match object. |
Method Summary | |
---|---|
(package private) boolean |
equals(Cyc.Match m)
Returns whether or not two matches represent a match between the same verb-frame pair and Cyc rule. |
String |
toString()
Returns a string representation of this Cyc.Match object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
String verb
Cyc.Match
object is created without the naive constraint at least being
applied to a possible match.
Cyc.loadManualFile()
,
Cyc.findCycMatches(String, String, String, int, String)
String vnClass
Cyc.loadManualFile()
,
Cyc.findCycMatches(String, String, String, int, String)
boolean isManualClass
Cyc.loadManualFile()
,
Cyc.findCycMatches(String, String, String, int, String)
,
Cyc.compareMatches()
String cycRuleNum
Cyc.addRuleNumbersAndCompress()
method
and is assigned in the order that the rules are found in the file.
Cyc.loadManualFile()
,
Cyc.findCycMatches(String, String, String, int, String)
String frame
Cyc.loadManualFile()
,
Cyc.findCycMatches(String, String, String, int, String)
boolean isCorrectMatch
Cyc.Match
object in the manual group (Cyc.MM
) and the
Cyc.Match
object in the automatic
group (Cyc.AM
) have this instance variable set to true
.
Use solely by the Cyc.compareMatches()
method when calculating
the final results.
Cyc.compareMatches()
boolean maybe
Cyc.loadManualFile()
,
toString()
Constructor Detail |
---|
Cyc.Match()
Cyc.Match
object.
Cyc.loadManualFile()
,
Cyc.findCycMatches(String, String, String, int, String)
Method Detail |
---|
public String toString()
Cyc.Match
object.
All instance variables except isManualClass
are included in the representation. If this method is being called
it is being called on a match that is in Cyc.MM
(a manual
mapping class match). The maybe
instance variable is only included if it is true and manifests itself
as the string (maybe)
appended to the normal representation.
toString
in class Object
Cyc.compareMatches()
boolean equals(Cyc.Match m)
m
- the other Cyc.Match
object to which this object
should be compared
Cyc.compareMatches()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |