edu.columbia.cs.cg.prdualrank.graph.generator
Class SearchGraphGenerator<T extends Document,D extends TokenizedDocument>

java.lang.Object
  extended by edu.columbia.cs.cg.prdualrank.graph.generator.GraphGenerator<Document,TokenizedDocument>
      extended by edu.columbia.cs.cg.prdualrank.graph.generator.SearchGraphGenerator<T,D>

public class SearchGraphGenerator<T extends Document,D extends TokenizedDocument>
extends GraphGenerator<Document,TokenizedDocument>

This class is used for our implementation of: "Searching Patterns for Relation Extraction over the Web: Rediscovering the Pattern-Relation Duality" . Y. Fang and K. C.-C. Chang. In WSDM, pages 825-834, 2011. For further information, WSDM 2011 Conference Website .

Description

Graph Generator for the Search patterns. A Search Pattern matches a tuple when the tuple appears in any of the documents retrieved after issuing a query using the search pattern.
The frequency is based on the number of documents that fit the condition described above.
For more information about Graphs, see Section 4 of the mentioned paper.

Since:
2011-10-07
Version:
0.1
Author:
Pablo Barrio, Goncalo Simoes
See Also:
WSDM 2011 Conference Website

Constructor Summary
SearchGraphGenerator(RelationshipType rType, Index index, QueryGenerator<org.apache.lucene.search.Query> queryGenerator)
          Instantiates a new search graph generator.
 
Method Summary
 
Methods inherited from class edu.columbia.cs.cg.prdualrank.graph.generator.GraphGenerator
generateGraph
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchGraphGenerator

public SearchGraphGenerator(RelationshipType rType,
                            Index index,
                            QueryGenerator<org.apache.lucene.search.Query> queryGenerator)
Instantiates a new search graph generator.

Parameters:
rType - the relationship type being processed
index - the index containing all the processed documents (it is for efficiency)
queryGenerator - the query generator that transforms search patterns into queries accepted by the index.