|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcolibri.test.test13.similarity.TokensContained
public class TokensContained
This function returns a similarity value depending on the tokens (words) that appear in the query attribute and also are in the case attribute.
Constructor Summary | |
---|---|
TokensContained()
Creates a new instance of TokensContained |
Method Summary | |
---|---|
double |
compute(java.lang.Object caseObject,
java.lang.Object queryObject)
Computes the similarity between two objects |
boolean |
isApplicable(java.lang.Object o1,
java.lang.Object o2)
Applicable to String |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TokensContained()
Method Detail |
---|
public double compute(java.lang.Object caseObject, java.lang.Object queryObject) throws NoApplicableSimilarityFunctionException
LocalSimilarityFunction
compute
in interface LocalSimilarityFunction
caseObject
- object of the casequeryObject
- object of the query
NoApplicableSimilarityFunctionException
public boolean isApplicable(java.lang.Object o1, java.lang.Object o2)
isApplicable
in interface LocalSimilarityFunction
|
GAIA - Group for Artificial Intelligence Applications http://gaia.fdi.ucm.es |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |