edu.columbia.cs.ref.model.matcher.impl
Class DictionaryEntityMatcher

java.lang.Object
  extended by edu.columbia.cs.ref.model.matcher.impl.DictionaryEntityMatcher
All Implemented Interfaces:
EntityMatcher, java.io.Serializable

public class DictionaryEntityMatcher
extends java.lang.Object
implements EntityMatcher

The Class DictionaryEntityMatcher is an implementation of the EntityMatcher that uses a dictionary of aliases to determine if two entities match.

Since:
2011-09-27
Version:
0.1
Author:
Pablo Barrio, Goncalo Simoes
See Also:
Serialized Form

Constructor Summary
DictionaryEntityMatcher(Dictionary dictionary)
          Instantiates a new dictionary entity matcher.
 
Method Summary
 boolean match(Entity original, Entity entity)
          Determines if the two input entities match
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DictionaryEntityMatcher

public DictionaryEntityMatcher(Dictionary dictionary)
Instantiates a new dictionary entity matcher. It receives as input a dictionary of aliases that will be used if each pair of entities is an alias of each other.

Parameters:
dictionary - the dictionary
Method Detail

match

public boolean match(Entity original,
                     Entity entity)
Description copied from interface: EntityMatcher
Determines if the two input entities match

Specified by:
match in interface EntityMatcher
Parameters:
original - the first entity
entity - the second entity
Returns:
true, if the entities match