anl.aida.client.net
Class ScorerThresholdEdgeCreator

java.lang.Object
  extended by anl.aida.client.net.ScorerThresholdEdgeCreator
All Implemented Interfaces:
EdgeCreator

public class ScorerThresholdEdgeCreator
extends java.lang.Object
implements EdgeCreator

Creates an edge between two term nodes based on the score of the documents in the two nodes. Specifically,

 1. For each document, if the document passes the filter for both terms, then
 increase the document count.
 2. If after processing all the documents, the doc count
 is greater than some threshold then create the edge.
 


Field Summary
private  int dcThreshold
           
private  anl.aida.score.ScorerThresholdFilter filter
           
 
Constructor Summary
ScorerThresholdEdgeCreator(int docThreshold, anl.aida.score.ScorerThresholdFilter filter)
          Creates an OccurenceEdgeCreator with the specified thresholds.
 
Method Summary
 boolean createEdge(TermNode node1, TermNode node2, edu.uci.ics.jung.graph.Graph<TermNode,CGEdge> graph)
          Creates an edge between the two nodes if the number of documents that occur in both nodes is greater than or equal to the threshold.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dcThreshold

private int dcThreshold

filter

private anl.aida.score.ScorerThresholdFilter filter
Constructor Detail

ScorerThresholdEdgeCreator

public ScorerThresholdEdgeCreator(int docThreshold,
                                  anl.aida.score.ScorerThresholdFilter filter)
Creates an OccurenceEdgeCreator with the specified thresholds.

Parameters:
docThreshold - the document count threshold
filter - the filter that determines whether the doc count should be increased
Method Detail

createEdge

public boolean createEdge(TermNode node1,
                          TermNode node2,
                          edu.uci.ics.jung.graph.Graph<TermNode,CGEdge> graph)
Creates an edge between the two nodes if the number of documents that occur in both nodes is greater than or equal to the threshold.

Specified by:
createEdge in interface EdgeCreator
Parameters:
node1 - the first node
node2 - the second node
graph - the graph where the edge will be created
Returns:
boolean if the edge created, otherwise false.