edu.upenn.cis.pdtb
Interface PDTBFeatures

All Known Subinterfaces:
PDTBAltLexRelationFeatures, PDTBExplicitRelationFeatures, PDTBImplicitRelationFeatures
All Known Implementing Classes:
PDTBAltLexRelationFeaturesImpl, PDTBExplicitRelationFeaturesImpl, PDTBFeaturesImpl, PDTBImplicitRelationFeaturesImpl

public interface PDTBFeatures

The base class of the features associated with a PDTBNode. In this base form, it is associated with PDTBArg. Subclasses are associated with relations.

Author:
nikhild

Field Summary
static int Factual
          Value indicating factuality.
static java.lang.String FactualityAttributeQName
          QName of the attribute whose value determines factuality.
static java.lang.String FactualVal
          String value of factuality.
static java.lang.String NegativePolarityVal
          String value of negative polarity.
static int NonFactual
          Value indicating non-factuality.
static java.lang.String NonFactualVal
          String value of non-factuality.
static int NullFactual
          Value indicating that factuality considerations don't apply.
static java.lang.String NullFactualVal
          String value of null factuality
static java.lang.String PolarityAttributeQName
          QName of the attribute whose value determines polarity.
static int PolarityNegative
          Value indicating negative polarity.
static int PolarityPositive
          Value indicating positive polarity.
static java.lang.String PositivePolarityVal
          String value of positive polarity.
static java.lang.String SourceAttributeQName
          QName of the attribute whose value is the source.
static int SourceInherited
          Value indicating source inheritance.
static java.lang.String SourceInheritedVal
          String value of source inheritance.
static int SourceOther
          Value indicating that source is an entity other than the writer.
static java.lang.String SourceOtherVal
          String value when the source is not the writer.
static int SourceWriter
          Value indicating source is the writer.
static java.lang.String SourceWriterVal
          String value when the source is the writer.
 
Method Summary
 int getFactuality()
          Get the factuality.
 PDTBNode getPDTBNode()
          Get the node on with which these features are associated.
 int getPolarity()
          Get the polarity.
 int getSource()
          Get the source.
 void setPDTBNode(PDTBNode node)
          Set the node with which these features are associated.
 void updateAttributesOnNode()
          Update the attributes on the node to the string values of these features.
 

Field Detail

SourceWriter

public static final int SourceWriter
Value indicating source is the writer.

See Also:
Constant Field Values

SourceOther

public static final int SourceOther
Value indicating that source is an entity other than the writer.

See Also:
Constant Field Values

Factual

public static final int Factual
Value indicating factuality.

See Also:
Constant Field Values

NonFactual

public static final int NonFactual
Value indicating non-factuality.

See Also:
Constant Field Values

NullFactual

public static final int NullFactual
Value indicating that factuality considerations don't apply.

See Also:
Constant Field Values

PolarityPositive

public static final int PolarityPositive
Value indicating positive polarity.

See Also:
Constant Field Values

PolarityNegative

public static final int PolarityNegative
Value indicating negative polarity.

See Also:
Constant Field Values

SourceInherited

public static final int SourceInherited
Value indicating source inheritance.

See Also:
Constant Field Values

SourceAttributeQName

public static final java.lang.String SourceAttributeQName
QName of the attribute whose value is the source.

See Also:
Constant Field Values

FactualityAttributeQName

public static final java.lang.String FactualityAttributeQName
QName of the attribute whose value determines factuality.

See Also:
Constant Field Values

PolarityAttributeQName

public static final java.lang.String PolarityAttributeQName
QName of the attribute whose value determines polarity.

See Also:
Constant Field Values

PositivePolarityVal

public static final java.lang.String PositivePolarityVal
String value of positive polarity.

See Also:
Constant Field Values

NegativePolarityVal

public static final java.lang.String NegativePolarityVal
String value of negative polarity.

See Also:
Constant Field Values

FactualVal

public static final java.lang.String FactualVal
String value of factuality.

See Also:
Constant Field Values

NonFactualVal

public static final java.lang.String NonFactualVal
String value of non-factuality.

See Also:
Constant Field Values

NullFactualVal

public static final java.lang.String NullFactualVal
String value of null factuality

See Also:
Constant Field Values

SourceWriterVal

public static final java.lang.String SourceWriterVal
String value when the source is the writer.

See Also:
Constant Field Values

SourceOtherVal

public static final java.lang.String SourceOtherVal
String value when the source is not the writer.

See Also:
Constant Field Values

SourceInheritedVal

public static final java.lang.String SourceInheritedVal
String value of source inheritance.

See Also:
Constant Field Values
Method Detail

getSource

public int getSource()
Get the source.

Returns:
One of PDTBFeatures.SourceWriter, PDTBFeatures.SourceOther, and PDTBFeatures.SourceInherited.

getFactuality

public int getFactuality()
Get the factuality.

Returns:
One of PDTBFeatures.Factual, PDTBFeatures.NonFactual, and PDTBFeatures.NullFactual.

getPolarity

public int getPolarity()
Get the polarity.

Returns:
One of PDTBFeatures.PolarityPositive, PDTBFeatures.PolarityNegative.

getPDTBNode

public PDTBNode getPDTBNode()
Get the node on with which these features are associated.


setPDTBNode

public void setPDTBNode(PDTBNode node)
Set the node with which these features are associated.


updateAttributesOnNode

public void updateAttributesOnNode()
Update the attributes on the node to the string values of these features.