edu.upenn.cis.pdtb
Class PDTBImplicitRelationFeaturesImpl

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

public class PDTBImplicitRelationFeaturesImpl
extends PDTBConnFeaturesImpl
implements PDTBImplicitRelationFeatures

Implementation of the PDTBImplicitRelationFeatures interface.

Author:
nikhild, geraud

Field Summary
 
Fields inherited from class edu.upenn.cis.pdtb.PDTBFeaturesImpl
fSel
 
Fields inherited from interface edu.upenn.cis.pdtb.PDTBImplicitRelationFeatures
Conn1AttrQName, Conn2AttrQName, SClass1A, SClass1B, SClass2A, SClass2B
 
Fields inherited from interface edu.upenn.cis.pdtb.PDTBConnFeatures
conns, DeterminancyFeature, PolarityFeature, semanticClassesLong, semanticClassesShort, semanticClassesTree, SourceFeature, TypeFeature
 
Fields inherited from interface edu.upenn.cis.pdtb.PDTBFeatures
options
 
Constructor Summary
PDTBImplicitRelationFeaturesImpl(java.lang.String source, java.lang.String type, java.lang.String polarity, java.lang.String determinancy, PDTBSelection sel, java.lang.String conn1, java.lang.String sClass1A, java.lang.String sClass1B, java.lang.String conn2, java.lang.String sClass2A, java.lang.String sClass2B)
          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.
 TreeEnumFeature getSClass1A()
          Get the first semantic class of Conn1.
 TreeEnumFeature getSClass1B()
          Get the second semantic class of Conn1.
 TreeEnumFeature getSClass2A()
          Get the first semantic class of Conn2.
 TreeEnumFeature getSClass2B()
          Get the second semantic class of Conn2.
 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
getDeterminancy, getPDTBNode, getPolarity, getSelection, getSource, getType, setDeterminancy, setPDTBNode, setPolarity, setSelection, setSource, setType
 
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
getDeterminancy, getPDTBNode, getPolarity, getSelection, getSource, getType, setDeterminancy, setPDTBNode, setPolarity, setSelection, setSource, setType
 

Constructor Detail

PDTBImplicitRelationFeaturesImpl

public PDTBImplicitRelationFeaturesImpl(java.lang.String source,
                                        java.lang.String type,
                                        java.lang.String polarity,
                                        java.lang.String determinancy,
                                        PDTBSelection sel,
                                        java.lang.String conn1,
                                        java.lang.String sClass1A,
                                        java.lang.String sClass1B,
                                        java.lang.String conn2,
                                        java.lang.String sClass2A,
                                        java.lang.String sClass2B)
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

getSClass1A

public TreeEnumFeature getSClass1A()
Description copied from interface: PDTBImplicitRelationFeatures
Get the first semantic class of Conn1.

Specified by:
getSClass1A in interface PDTBImplicitRelationFeatures

getSClass1B

public TreeEnumFeature getSClass1B()
Description copied from interface: PDTBImplicitRelationFeatures
Get the second semantic class of Conn1.

Specified by:
getSClass1B in interface PDTBImplicitRelationFeatures

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

getSClass2A

public TreeEnumFeature getSClass2A()
Description copied from interface: PDTBImplicitRelationFeatures
Get the first semantic class of Conn2.

Specified by:
getSClass2A in interface PDTBImplicitRelationFeatures

getSClass2B

public TreeEnumFeature getSClass2B()
Description copied from interface: PDTBImplicitRelationFeatures
Get the second semantic class of Conn2.

Specified by:
getSClass2B in interface PDTBImplicitRelationFeatures

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 PDTBConnFeaturesImpl

save

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