public class Sim_Framework_DAG_Set_Tversky_1977 extends Sim_Framework_DAG_Set_abstract
Modifier and Type | Field and Description |
---|---|
static String |
k_param_name |
Constructor and Description |
---|
Sim_Framework_DAG_Set_Tversky_1977()
Create a Tversky Contrast Model semantic similarity instance with k
parameter equals to 0.5
|
Sim_Framework_DAG_Set_Tversky_1977(double k)
Create a Tversky Contrast Model semantic similarity instance.
|
Modifier and Type | Method and Description |
---|---|
double |
getK() |
boolean |
isSymmetric() |
void |
setK(double k)
Setter of the k parameter value
|
double |
sim(Set<org.openrdf.model.URI> ancA,
Set<org.openrdf.model.URI> ancB,
SMconf conf)
This provide a way to compare the two sets of concepts which have been
extended considering inference based on the taxonomic hierarchy.
|
sim, sim
public static final String k_param_name
public Sim_Framework_DAG_Set_Tversky_1977()
public Sim_Framework_DAG_Set_Tversky_1977(double k)
k
- the value of the k parameterpublic double sim(Set<org.openrdf.model.URI> ancA, Set<org.openrdf.model.URI> ancB, SMconf conf) throws slib.utils.ex.SLIB_Exception
Sim_Framework_DAG_Set_abstract
sim
in class Sim_Framework_DAG_Set_abstract
ancA
- the first setancB
- the second setconf
- the configuration to apply to compute the semantic similarityslib.utils.ex.SLIB_Exception
public double getK()
public void setK(double k)
k
- the new value of kpublic boolean isSymmetric()
Copyright © 2014. All rights reserved.