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

Class Cfactvalue

source code

This class encapsulates a factvalue object in KAF/NAF (old version)

Instance Methods [hide private]
 
__init__(self, node=None)
Constructor of the object
source code
 
__str__(self) source code
string
get_confidence(self)
Returns the confidence of the element
source code
string
get_id(self)
Returns the fact identifier
source code
xml Element
get_node(self)
Returns the node of the element
source code
string
get_prediction(self)
Returns the prediction attribute of the factvalue
source code
 
set_confidence(self, confidence)
Sets the confidence attribute
source code
 
set_id(self, this_id)
Set the identifier for the fact
source code
 
set_prediction(self, prediction)
Sets the prediction attribute
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

get_confidence(self)

source code 

Returns the confidence of the element

Returns: string
the confidence of the element

get_id(self)

source code 

Returns the fact identifier

Returns: string
the fact identifier

get_node(self)

source code 

Returns the node of the element

Returns: xml Element
the node of the element

get_prediction(self)

source code 

Returns the prediction attribute of the factvalue

Returns: string
the prediction attribute

set_confidence(self, confidence)

source code 

Sets the confidence attribute

Parameters:
  • confidence (string) - the confidence attribute

set_id(self, this_id)

source code 

Set the identifier for the fact

Parameters:
  • this_id (string) - the identifier

set_prediction(self, prediction)

source code 

Sets the prediction attribute

Parameters:
  • prediction (string) - the prediction attribute