jcolibri.method.retrieve.NNretrieval.similarity.local.textual
Class CRNsimilarity
java.lang.Object
jcolibri.method.retrieve.NNretrieval.similarity.InContextLocalSimilarityFunction
jcolibri.method.retrieve.NNretrieval.similarity.local.textual.CRNsimilarity
- All Implemented Interfaces:
- LocalSimilarityFunction
public class CRNsimilarity
- extends InContextLocalSimilarityFunction
Similarity measure using a Case Retrieval Net
It is applicable to any IEText object.
Developed at: Robert Gordon University - Aberdeen & Facultad Informática,
Universidad Complutense de Madrid (GAIA)
- Version:
- 1.0
- Author:
- Juan Antonio Recio García
Method Summary |
double |
compute(java.lang.Object caseObject,
java.lang.Object queryObject)
Applies the similarity |
boolean |
isApplicable(java.lang.Object o1,
java.lang.Object o2)
Indicates if the function is applicable to two objects |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CRNsimilarity
public CRNsimilarity()
compute
public double compute(java.lang.Object caseObject,
java.lang.Object queryObject)
throws NoApplicableSimilarityFunctionException
- Applies the similarity
- Parameters:
caseObject
- IETextqueryObject
- IEText
- Returns:
- the result of the similarity function
- Throws:
NoApplicableSimilarityFunctionException
isApplicable
public boolean isApplicable(java.lang.Object o1,
java.lang.Object o2)
- Description copied from interface:
LocalSimilarityFunction
- Indicates if the function is applicable to two objects