fr.inrialpes.exmo.ontosim
Class VectorSpaceMeasure
java.lang.Object
fr.inrialpes.exmo.ontosim.VectorSpaceMeasure
- All Implemented Interfaces:
- Measure<fr.inrialpes.exmo.ontowrap.LoadedOntology<?>>
public class VectorSpaceMeasure
- extends Object
- implements Measure<fr.inrialpes.exmo.ontowrap.LoadedOntology<?>>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ontologies
protected Map<fr.inrialpes.exmo.ontowrap.LoadedOntology<?>,Document> ontologies
ontIndex
private DocumentCollection ontIndex
vectorType
protected DocumentCollection.WEIGHT vectorType
measure
protected VectorMeasure measure
VectorSpaceMeasure
public VectorSpaceMeasure()
VectorSpaceMeasure
public VectorSpaceMeasure(Collection<fr.inrialpes.exmo.ontowrap.LoadedOntology<?>> ontologies)
VectorSpaceMeasure
public VectorSpaceMeasure(VectorMeasure m,
DocumentCollection.WEIGHT vectorType)
VectorSpaceMeasure
public VectorSpaceMeasure(Collection<fr.inrialpes.exmo.ontowrap.LoadedOntology<?>> ontologies,
VectorMeasure m,
DocumentCollection.WEIGHT vectorType)
addOntology
public final boolean addOntology(fr.inrialpes.exmo.ontowrap.LoadedOntology<?> ontology)
addOntologies
public final void addOntologies(Collection<fr.inrialpes.exmo.ontowrap.LoadedOntology<?>> ontologies)
getSim
public double getSim(fr.inrialpes.exmo.ontowrap.LoadedOntology<?> o1,
fr.inrialpes.exmo.ontowrap.LoadedOntology<?> o2,
VectorMeasure m,
DocumentCollection.WEIGHT vectorType)
getDissim
public double getDissim(fr.inrialpes.exmo.ontowrap.LoadedOntology<?> o1,
fr.inrialpes.exmo.ontowrap.LoadedOntology<?> o2,
VectorMeasure m,
DocumentCollection.WEIGHT vectorType)
getSim
public double getSim(fr.inrialpes.exmo.ontowrap.LoadedOntology<?> o1,
fr.inrialpes.exmo.ontowrap.LoadedOntology<?> o2)
- Specified by:
getSim
in interface Measure<fr.inrialpes.exmo.ontowrap.LoadedOntology<?>>
getDissim
public double getDissim(fr.inrialpes.exmo.ontowrap.LoadedOntology<?> o1,
fr.inrialpes.exmo.ontowrap.LoadedOntology<?> o2)
- Specified by:
getDissim
in interface Measure<fr.inrialpes.exmo.ontowrap.LoadedOntology<?>>
getMeasureValue
public double getMeasureValue(fr.inrialpes.exmo.ontowrap.LoadedOntology<?> o1,
fr.inrialpes.exmo.ontowrap.LoadedOntology<?> o2)
- Specified by:
getMeasureValue
in interface Measure<fr.inrialpes.exmo.ontowrap.LoadedOntology<?>>
getMType
public Measure.TYPES getMType()
- Specified by:
getMType
in interface Measure<fr.inrialpes.exmo.ontowrap.LoadedOntology<?>>
getVectorType
public DocumentCollection.WEIGHT getVectorType()
(C) INRIA, UPMF & friends, 2008-2011