edu.upenn.cis.pdtb
Class PDTBImplicitRelationFeaturesImpl

java.lang.Object
  extended byedu.upenn.cis.pdtb.PDTBFeaturesImpl
      extended byedu.upenn.cis.pdtb.PDTBImplicitRelationFeaturesImpl
All Implemented Interfaces:
PDTBFeatures, PDTBImplicitRelationFeatures

public class PDTBImplicitRelationFeaturesImpl
extends PDTBFeaturesImpl
implements PDTBImplicitRelationFeatures

Implementation of the PDTBImplicitRelationFeatures interface.

Author:
nikhild

Field Summary
 
Fields inherited from interface edu.upenn.cis.pdtb.PDTBImplicitRelationFeatures
Conn1AttrQName, Conn2AttrQName, SemanticClass1AttrQName, SemanticClass2AttrQName
 
Fields inherited from interface edu.upenn.cis.pdtb.PDTBFeatures
Factual, FactualityAttributeQName, FactualVal, NegativePolarityVal, NonFactual, NonFactualVal, NullFactual, NullFactualVal, PolarityAttributeQName, PolarityNegative, PolarityPositive, PositivePolarityVal, SourceAttributeQName, SourceInherited, SourceInheritedVal, SourceOther, SourceOtherVal, SourceWriter, SourceWriterVal
 
Constructor Summary
PDTBImplicitRelationFeaturesImpl(java.lang.String source, java.lang.String factuality, java.lang.String polarity, java.lang.String conn1, java.lang.String semanticClass1, java.lang.String conn2, java.lang.String semanticClass2)
          Creates a new instance of PDTBImplicitRelationFeaturesImpl
 
Method Summary
 java.lang.String getConn1()
          Get a connective that expresses the relation
 java.lang.String getConn2()
          Get a second connective that expresses the relation.
 java.lang.String getSemanticClass1()
          Get the semantic class of Conn1.
 java.lang.String getSemanticClass2()
          Get the semantic class of the second connective if present.
 void save(java.io.Writer writer)
           
 void updateAttributesOnNode()
          Update the attributes on the node to the string values of these features.
 
Methods inherited from class edu.upenn.cis.pdtb.PDTBFeaturesImpl
getFactuality, getPDTBNode, getPolarity, getSource, setPDTBNode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.upenn.cis.pdtb.PDTBFeatures
getFactuality, getPDTBNode, getPolarity, getSource, setPDTBNode
 

Constructor Detail

PDTBImplicitRelationFeaturesImpl

public PDTBImplicitRelationFeaturesImpl(java.lang.String source,
                                        java.lang.String factuality,
                                        java.lang.String polarity,
                                        java.lang.String conn1,
                                        java.lang.String semanticClass1,
                                        java.lang.String conn2,
                                        java.lang.String semanticClass2)
Creates a new instance of PDTBImplicitRelationFeaturesImpl

Method Detail

getConn1

public java.lang.String getConn1()
Description copied from interface: PDTBImplicitRelationFeatures
Get a connective that expresses the relation

Specified by:
getConn1 in interface PDTBImplicitRelationFeatures
Returns:
The connective iff getType() == EConn. null otherwise.

getSemanticClass1

public java.lang.String getSemanticClass1()
Description copied from interface: PDTBImplicitRelationFeatures
Get the semantic class of Conn1.

Specified by:
getSemanticClass1 in interface PDTBImplicitRelationFeatures
Returns:
Semantic class if Conn1 is not null. null otherwise.

updateAttributesOnNode

public void updateAttributesOnNode()
Description copied from interface: PDTBFeatures
Update the attributes on the node to the string values of these features.

Specified by:
updateAttributesOnNode in interface PDTBFeatures
Overrides:
updateAttributesOnNode in class PDTBFeaturesImpl

getConn2

public java.lang.String getConn2()
Description copied from interface: PDTBImplicitRelationFeatures
Get a second connective that expresses the relation.

Specified by:
getConn2 in interface PDTBImplicitRelationFeatures
Returns:
non null only if getType()==EConn.

getSemanticClass2

public java.lang.String getSemanticClass2()
Description copied from interface: PDTBImplicitRelationFeatures
Get the semantic class of the second connective if present.

Specified by:
getSemanticClass2 in interface PDTBImplicitRelationFeatures
Returns:
non null only if Conn2 is not null. null otherwise.

save

public void save(java.io.Writer writer)
          throws java.io.IOException
Overrides:
save in class PDTBFeaturesImpl
Throws:
java.io.IOException