slib.sml.sm.core.metrics.ic.topo
Class ICi_zhou_2008

java.lang.Object
  extended by slib.sml.sm.core.metrics.utils.LogBasedMetric
      extended by slib.sml.sm.core.metrics.ic.topo.ICi_zhou_2008
All Implemented Interfaces:
ICtopo, LogBasedMetricInterface

public class ICi_zhou_2008
extends LogBasedMetric
implements ICtopo

Zhou Z, Wang Y, Gu J: A New Model of Information Content for Semantic Similarity in WordNet. In FGCNS ’08 Proceedings of the 2008 Second International Conference on Future Generation Communication and Networking Symposia Volume 03. IEEE Computer Society; 2008:85-89. IC range : [0,1]

Author:
Sebastien Harispe

Constructor Summary
ICi_zhou_2008()
          Builder of an instance of IC computer.
ICi_zhou_2008(double k)
          Builder of an instance of IC computer.
 
Method Summary
 Map<org.openrdf.model.URI,Double> compute(IC_Conf_Topo conf, SM_Engine manager)
          Compute the topological Information Content for the vertices contained by the graph associated to the given engine.
 Map<org.openrdf.model.URI,Double> compute(Map<org.openrdf.model.URI,Integer> alldepths, Map<org.openrdf.model.URI,Set<org.openrdf.model.URI>> allDescendantsIncs)
          Compute the IC for each vertices expressed in the given result stack.
 
Methods inherited from class slib.sml.sm.core.metrics.utils.LogBasedMetric
getLogBase, setLogBase, setLogBase
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ICi_zhou_2008

public ICi_zhou_2008()
Builder of an instance of IC computer. The parameter k is set to 0.5


ICi_zhou_2008

public ICi_zhou_2008(double k)
Builder of an instance of IC computer.

Parameters:
k - the value of the constant.
Method Detail

compute

public Map<org.openrdf.model.URI,Double> compute(Map<org.openrdf.model.URI,Integer> alldepths,
                                                 Map<org.openrdf.model.URI,Set<org.openrdf.model.URI>> allDescendantsIncs)
                                          throws slib.utils.ex.SLIB_Ex_Critic
Compute the IC for each vertices expressed in the given result stack. The two result stack are expected to contain the values for each processed vertices.

Parameters:
alldepths - a result stack containing the depth for each vertices
allNbDescendants - a result stack containing the number of descendants for each vertices
Returns:
a result stack containing the IC for each vertices.
Throws:
slib.utils.ex.SLIB_Ex_Critic

compute

public Map<org.openrdf.model.URI,Double> compute(IC_Conf_Topo conf,
                                                 SM_Engine manager)
                                          throws slib.utils.ex.SLIB_Ex_Critic
Description copied from interface: ICtopo
Compute the topological Information Content for the vertices contained by the graph associated to the given engine.

Specified by:
compute in interface ICtopo
Parameters:
conf - the configuration defining the measure among other
manager - the engine used to manage the computation
Returns:
a result stack containing the Information Content for each vertices of the graph.
Throws:
slib.utils.ex.SLIB_Ex_Critic


Copyright © 2013. All Rights Reserved.