All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object
|
+----COM.Lexical.Metaphrase.SemanticClassifier
|
+----COM.Lexical.Metaphrase.SemanticTypeClassifier
User specifies a ordered list (array) of SemanticTypes (the "keys") and a parallel list of SemanticClasses (the "values"), plus a "default" SemanticClass.
classify(Concept concept) runs through the list of SemanticTypes, and returns the first SemanticClass for which the concept has either the corresponding SemanticType or any subtype of that SemanticType (as determined by SemanticType.STN(), or returns the default SemanticClass if no "match" is found.
public SemanticTypeClassifier(SemanticType keys[],
SemanticClass values[],
SemanticClass defaultClass)
public SemanticTypeClassifier(java.lang.String keys[],
SemanticClass values[],
SemanticClass defaultClass)
public SemanticClass classify(Concept concept)
concept - a Metaphrase Concept.
public SemanticClass classify(SemanticType semanticTypes[])
semanticTypes - SemanticType[]
origin - the origin (a String)
All Packages Class Hierarchy This Package Previous Next Index