Class MongeElkanMapper

  • All Implemented Interfaces:
    IMapper

    public class MongeElkanMapper
    extends AMapper
    Author:
    Peggy Lucke
    • Constructor Detail

      • MongeElkanMapper

        public MongeElkanMapper()
    • Method Detail

      • setSplit

        public void setSplit​(String split)
      • getMapping

        public AMapping getMapping​(Map<String,​Set<String>> sourceMap,
                                   Map<String,​Set<String>> targetMap,
                                   double threshold)
        Parameters:
        sourceMap - Texts to compare with target
        targetMap - Texts to compare with source
        threshold - is the minimum similarity of the results
        Returns:
        all results of source compare with target together with the similarity of them
      • getMapping

        public AMapping getMapping​(ACache source,
                                   ACache target,
                                   String sourceVar,
                                   String targetVar,
                                   String expression,
                                   double threshold)
        Description copied from interface: IMapper
        Returns a mapping given a source, a target knowledge base and a link specification.
        Parameters:
        source - source cache
        target - target cache
        sourceVar - source property variable
        targetVar - size property variable
        expression - metric expression of link specification
        threshold - threshold of link specification
        Returns:
        a mapping, the resulting mapping
      • getName

        public String getName()
        Description copied from interface: IMapper
        Returns the name of the mapper.
        Returns:
        Mapper name as a string
      • getRuntimeApproximation

        public double getRuntimeApproximation​(int sourceSize,
                                              int targetSize,
                                              double theta,
                                              IMapper.Language language)
        Description copied from interface: IMapper
        Returns the estimated time needed to obtain the mapping computed by the mapper.
        Parameters:
        sourceSize - source size
        targetSize - target size
        theta - atomic specification threshold
        language - language of source and target variables
        Returns:
        estimated runtime, as double
      • getMappingSizeApproximation

        public double getMappingSizeApproximation​(int sourceSize,
                                                  int targetSize,
                                                  double theta,
                                                  IMapper.Language language)
        Description copied from interface: IMapper
        Returns the estimated mapping size of the mapping computed by the mapper.
        Parameters:
        sourceSize - source size
        targetSize - target size
        theta - atomic specification threshold
        language - language of source and target variables
        Returns:
        estimated execution time, as double