edu.washington.cs.knowitall.extraction
Class NestedExtraction
java.lang.Object
edu.washington.cs.knowitall.nlp.extraction.SpanExtraction
edu.washington.cs.knowitall.extraction.NestedExtraction
public class NestedExtraction
- extends edu.washington.cs.knowitall.nlp.extraction.SpanExtraction
A class that represents a nested relation. An example of a nested relation is
theoryThat(heliocentrism, centerOf(sun, universe)). A nested relation
has the following components:
- Argument 1 - e.g.
heliocentrism
- Nested Relation - e.g.
theory that
- Argument 2 - e.g.
sun
- Base Relation - e.g.
center of
- Argument 3 - e.g.
universe
Arg2, the base relation, and arg3 are collectively referred to as the base
extraction.
- Author:
- afader
|
Constructor Summary |
NestedExtraction(edu.washington.cs.knowitall.nlp.extraction.ChunkedExtraction arg1,
edu.washington.cs.knowitall.nlp.extraction.ChunkedExtraction nrel,
edu.washington.cs.knowitall.nlp.extraction.ChunkedBinaryExtraction baseExtr)
Constructs a new NestedExtraction object |
| Methods inherited from class edu.washington.cs.knowitall.nlp.extraction.SpanExtraction |
equals, getField, getField, getFieldName, getFieldNames, getFieldRange, getFieldRange, getFieldRanges, getFields, getNumFields, getProperties, getProperty, getPropertyNames, getSentence, hasField, hashCode, hasProperty, setProperties, setProperty, toBIOLayer |
ARG1
public static final String ARG1
- See Also:
- Constant Field Values
NREL
public static final String NREL
- See Also:
- Constant Field Values
ARG2
public static final String ARG2
- See Also:
- Constant Field Values
BREL
public static final String BREL
- See Also:
- Constant Field Values
ARG3
public static final String ARG3
- See Also:
- Constant Field Values
NestedExtraction
public NestedExtraction(edu.washington.cs.knowitall.nlp.extraction.ChunkedExtraction arg1,
edu.washington.cs.knowitall.nlp.extraction.ChunkedExtraction nrel,
edu.washington.cs.knowitall.nlp.extraction.ChunkedBinaryExtraction baseExtr)
- Constructs a new NestedExtraction object
- Parameters:
arg1 - the first argumentnrel - the nested relationbaseExtr - the base extraction
getBaseExtraction
public edu.washington.cs.knowitall.nlp.extraction.ChunkedBinaryExtraction getBaseExtraction()
- Returns:
- the base extraction
getArgument1
public edu.washington.cs.knowitall.nlp.extraction.ChunkedExtraction getArgument1()
- Returns:
- the first argument
getNestedRelation
public edu.washington.cs.knowitall.nlp.extraction.ChunkedExtraction getNestedRelation()
- Returns:
- the nested relation
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2011 University of Washington CSE. All Rights Reserved.