Module factuality_data :: Class Cfactval
[hide private]
[frames] | no frames]

Class Cfactval

source code

Instance Methods [hide private]
 
__init__(self, node=None)
Constructor of the object
source code
 
get_confidence(self)
Returns the confidence of the factVal element
source code
 
get_node(self)
Returns the node
source code
 
get_resource(self)
Returns the resource that defines the factuality value
source code
 
get_value(self)
Returns the value of the factVal element
source code
 
set_confidence(self, c)
Sets confidence for the factVal element
source code
 
set_resource(self, r)
Sets the resource that defines the factuality value
source code
 
set_value(self, v)
Sets the value for the factVal element
source code
Method Details [hide private]

__init__(self, node=None)
(Constructor)

source code 

Constructor of the object

Parameters:
  • node (xml Element or None (to create and empty one)) - this is the node of the element. If it is None it will create a new object

set_confidence(self, c)

source code 

Sets confidence for the factVal element

Parameters:
  • c (string) - the value for the element

set_resource(self, r)

source code 

Sets the resource that defines the factuality value

Parameters:
  • r (string) - the resource defining factuality

set_value(self, v)

source code 

Sets the value for the factVal element

Parameters:
  • v (string) - the value for the element