Class ALDecider
- java.lang.Object
-
- org.aksw.limes.core.ml.algorithm.eagle.core.ALDecider
-
public class ALDecider extends Object
Class to get the most controversy matches out of n
Mappings. The most controversy matches are those contained in close to n/2Mappingsand vice versa. This functionality is required by the Active Learning approach of the genetics package.NOTE: Functionality requires
de.uni_leipzig.simba.data.Triple.classto implement theComparableinterface and overrideshashCode()function such that aTriplet1 is considered to equals anotherTriplet2 iff both source and target URIs are equal.- Version:
- Jul 21, 2016
- Author:
- Klaus Lyko, Mohamed Sherif (sherif@informatik.uni-leipzig.de)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classALDecider.Triple
-
Constructor Summary
Constructors Constructor Description ALDecider()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ALDecider.Triple>getControversyCandidates(List<AMapping> mapList)List<ALDecider.Triple>getControversyCandidates(List<AMapping> mapList, int n)Function to get the n most controversy matching candidates of the given mappings.HashMap<ALDecider.Triple,Integer>getControversyMatches(List<AMapping> mapList)Method returns the controversy matches of the givenMapping.static voidmain(String[] args)voidsetKnown(AMapping m)To set already retrieved instances.
-
-
-
Method Detail
-
main
public static void main(String[] args)
-
getControversyMatches
public HashMap<ALDecider.Triple,Integer> getControversyMatches(List<AMapping> mapList)
Method returns the controversy matches of the givenMapping. This is just aHashMap, whereas the keys are theTriplesand the values the number ofMappingsholding thisTriple.- Parameters:
mapList- A List of all Mappings to process.- Returns:
HashMapa map ofTriples(matches) and the number ofMappingsholding them.
-
getControversyCandidates
public List<ALDecider.Triple> getControversyCandidates(List<AMapping> mapList, int n)
Function to get the n most controversy matching candidates of the given mappings. The most controversy once are those, who are only in half of the given mappings.- Parameters:
mapList- List of Mappings.n- Controls how many candidates should be retrieved.- Returns:
-
getControversyCandidates
public List<ALDecider.Triple> getControversyCandidates(List<AMapping> mapList)
- Parameters:
mapList-- Returns:
- tripleList with informative value
-
setKnown
public void setKnown(AMapping m)
To set already retrieved instances. For example those provided at start up.- Parameters:
m- Mapping of already asked URIs of source and target.
-
-