edu.washington.cs.knowitall.argumentidentifier
Class ArgLearner

java.lang.Object
  extended by edu.washington.cs.knowitall.extractor.Extractor<ChunkedExtraction,ChunkedArgumentExtraction>
      extended by edu.washington.cs.knowitall.argumentidentifier.ArgLearner

public class ArgLearner
extends Extractor<ChunkedExtraction,ChunkedArgumentExtraction>

ArgLearner main class. Extracts either left or right argument.

Author:
janara

Nested Class Summary
static class ArgLearner.Mode
           
 
Field Summary
 ArgSubstructureClassifier arg1leftboundclassifier
           
 ArgLocationClassifier arg1rightboundclassifier
           
 ArgLocationClassifier arg2leftboundclassifier
           
 ArgSubstructureClassifier arg2rightboundclassifier
           
 
Constructor Summary
ArgLearner(ArgLearner.Mode mode)
           
 
Method Summary
protected  Iterable<ChunkedArgumentExtraction> extractCandidates(ChunkedExtraction predicate)
          Extracts candidate extractions from the given source object.
 
Methods inherited from class edu.washington.cs.knowitall.extractor.Extractor
addMapper, compose, extract, getMappers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

arg1rightboundclassifier

public ArgLocationClassifier arg1rightboundclassifier

arg2leftboundclassifier

public ArgLocationClassifier arg2leftboundclassifier

arg1leftboundclassifier

public ArgSubstructureClassifier arg1leftboundclassifier

arg2rightboundclassifier

public ArgSubstructureClassifier arg2rightboundclassifier
Constructor Detail

ArgLearner

public ArgLearner(ArgLearner.Mode mode)
Method Detail

extractCandidates

protected Iterable<ChunkedArgumentExtraction> extractCandidates(ChunkedExtraction predicate)
                                                         throws ExtractorException
Description copied from class: Extractor
Extracts candidate extractions from the given source object. When the user calls Extractor.extract(Object), the this method is used to generate a set of candidate extractions, which are then passed through each mapper object attached to the extractor.

Specified by:
extractCandidates in class Extractor<ChunkedExtraction,ChunkedArgumentExtraction>
Parameters:
predicate - the source to extract from.
Returns:
an iterable object over the candidate extractions.
Throws:
ExtractorException - if unable to extract


Copyright © 2010-2012 University of Washington CSE. All Rights Reserved.