Class FastNGramMapper
- java.lang.Object
-
- org.aksw.limes.core.measures.mapper.AMapper
-
- org.aksw.limes.core.measures.mapper.string.fastngram.FastNGramMapper
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.aksw.limes.core.measures.mapper.IMapper
IMapper.Language
-
-
Constructor Summary
Constructors Constructor Description FastNGramMapper()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AMappingcompute(Set<String> source, Set<String> target, int q, double threshold)AMappinggetMapping(ACache source, ACache target, String sourceVar, String targetVar, String expression, double threshold)Computes a mapping between a source and a target.doublegetMappingSizeApproximation(int sourceSize, int targetSize, double threshold, IMapper.Language language)Returns the estimated mapping size of the mapping computed by the mapper.StringgetName()Returns the name of the mapper.doublegetRuntimeApproximation(int sourceSize, int targetSize, double threshold, IMapper.Language language)Returns the estimated time needed to obtain the mapping computed by the mapper.-
Methods inherited from class org.aksw.limes.core.measures.mapper.AMapper
getUriToUriMapping, getUriToUriMapping, getValueToUriMap, setNo
-
-
-
-
Method Detail
-
compute
public static AMapping compute(Set<String> source, Set<String> target, int q, double threshold)
-
getName
public String getName()
Description copied from interface:IMapperReturns the name of the mapper.- Returns:
- Mapper name as a string
-
getMapping
public AMapping getMapping(ACache source, ACache target, String sourceVar, String targetVar, String expression, double threshold)
Computes a mapping between a source and a target.- Parameters:
source- Source cachetarget- Target cachesourceVar- Variable for the source datasettargetVar- Variable for the target datasetexpression- Expression to process.threshold- Similarity threshold- Returns:
- A mapping which contains links between the source instances and the target instances
-
getRuntimeApproximation
public double getRuntimeApproximation(int sourceSize, int targetSize, double threshold, IMapper.Language language)Description copied from interface:IMapperReturns the estimated time needed to obtain the mapping computed by the mapper.- Parameters:
sourceSize- source sizetargetSize- target sizethreshold- atomic specification thresholdlanguage- language of source and target variables- Returns:
- estimated runtime, as double
-
getMappingSizeApproximation
public double getMappingSizeApproximation(int sourceSize, int targetSize, double threshold, IMapper.Language language)Description copied from interface:IMapperReturns the estimated mapping size of the mapping computed by the mapper.- Parameters:
sourceSize- source sizetargetSize- target sizethreshold- atomic specification thresholdlanguage- language of source and target variables- Returns:
- estimated execution time, as double
-
-