edu.washington.cs.knowitall.extractor
Class NpListExtractor

java.lang.Object
  extended by edu.washington.cs.knowitall.extractor.Extractor<ChunkedSentence,NpList>
      extended by edu.washington.cs.knowitall.extractor.NpListExtractor

public class NpListExtractor
extends Extractor<ChunkedSentence,NpList>


Constructor Summary
NpListExtractor()
           
NpListExtractor(int minNumNps)
           
 
Method Summary
 java.lang.Iterable<NpList> extractCandidates(ChunkedSentence sent)
          Extracts candidate extractions from the given source object.
 int getMinNumNps()
           
static void main(java.lang.String[] args)
           
 void setMinNumNps(int val)
           
 
Methods inherited from class edu.washington.cs.knowitall.extractor.Extractor
addMapper, compose, extract, extract, getMappers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NpListExtractor

public NpListExtractor()

NpListExtractor

public NpListExtractor(int minNumNps)
Method Detail

getMinNumNps

public int getMinNumNps()

setMinNumNps

public void setMinNumNps(int val)

extractCandidates

public java.lang.Iterable<NpList> extractCandidates(ChunkedSentence sent)
Description copied from class: Extractor
Extracts candidate extractions from the given source object. When the user calls the extract(S source) method, the extractCandidate(S source) method is used to generate a set of candidate extractions, which are then passed through each Mapper object assigned to the extractor.

Specified by:
extractCandidates in class Extractor<ChunkedSentence,NpList>
Parameters:
sent - The source to extract from.
Returns:
An Iterable object over the candidate extractions.

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception