recoinx.clef
Class CLEFLanguageMerger

java.lang.Object
recoin.group.ComponentWorker
recoinx.clef.CLEFLanguageMerger
- public class CLEFLanguageMerger
- extends recoin.group.ComponentWorker
Merges CLEFResultLists that share the same language. The CLEFResults are
merged according to weights assigned for the different databases.
- Version:
- 0.2.9
|
Nested Class Summary |
protected class |
CLEFLanguageMerger.LanguageMergerRunnable
The LanguageMergerRunnable class implements the behavior of a ComponentRunnable
that merges CLEFResultLists of the same language into a MergedList. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
componentWeights
protected java.util.Hashtable componentWeights
- The weights for the CLEFResultLists from different components.
The chain ID of the component is used as the key in this Hashtable.
The values are extracted from the attributes by combining the information in the
value field of the attribute. The name of the attribute has to start with 'weight'
to be recognized.
Example: Attributename: weightMySQL1 Value: 3[7]:1.45
This would merge all CLEFResultLists that were created by the Component with
the chain ID '3[7]' by multiplying their scores with 1.45.
logger
static org.apache.log4j.Logger logger
- The logger of this class.
CLEFLanguageMerger
public CLEFLanguageMerger()
- Creates a new CLEFLanguageMerger.
initiate
public void initiate(recoin.group.Component c)
throws recoin.exception.InitiationException
- Initiates this CLEFLanguageMerger by passing the specified Component to the
superclass's initiate method. Furthermore the Component is examined to see if
any attributes beginning with 'weight...' have been specified.
createComponentRunnable
public recoin.group.ComponentRunnable createComponentRunnable(recoin.container.RetrievalContainer container)
- Description copied from class:
recoin.group.ComponentWorker
- Creates and returns a new ComponentRunnable using the specified RetrievalContainer.
createComponentRunnable
public recoin.group.ComponentRunnable createComponentRunnable(recoin.container.RetrievalContainer container,
java.util.Vector supports)
- Description copied from class:
recoin.group.ComponentWorker
- Creates and returns a new ComponentRunnable using the specified RetrievalContainer
and ComponentSupport objects.
createComponentRunnable
public recoin.group.ComponentRunnable createComponentRunnable(recoin.container.RetrievalContainer container,
java.util.Vector supports,
recoin.group.ComponentRunnable runnable)
- Description copied from class:
recoin.group.ComponentWorker
- Creates and returns a new ComponentRunnable using the specified RetrievalContainer,
ComponentSupport objects and ComponentRunnable.