Module temporal_data :: Class CpredicateAnchor
[hide private]
[frames] | no frames]

Class CpredicateAnchor

source code

This class encapsulates the predicateAnchor object in KAF/NAF

Instance Methods [hide private]
 
__init__(self, node=None)
Constructor of the object
source code
string
get_anchorTime(self)
Returns the anchorTime
source code
string
get_beginPoint(self)
Returns the beginPoint
source code
string
get_endPoint(self)
Returns the endPoint
source code
string
get_id(self)
Returns the token identifier
source code
xml Element
get_node(self)
Returns the node of the element
source code
Cspan
get_span(self)
Returns the span object of the term
source code
 
set_anchorTime(self, anchorTime)
Set the anchor time for the event
source code
 
set_beginPoint(self, beginPoint)
Set the beginPoint for the event
source code
 
set_endPoint(self, endPoint)
Set the endPoint for the event
source code
 
set_id(self, this_id)
Set the identifier for the token
source code
 
set_span(self, this_span)
Sets the span for the lemma
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_anchorTime(self)

source code 

Returns the anchorTime

Returns: string
the anchorTime

get_beginPoint(self)

source code 

Returns the beginPoint

Returns: string
the beginPoint

get_endPoint(self)

source code 

Returns the endPoint

Returns: string
the endPoint

get_id(self)

source code 

Returns the token identifier

Returns: string
the token identifier

get_node(self)

source code 

Returns the node of the element

Returns: xml Element
the node of the element

get_span(self)

source code 

Returns the span object of the term

Returns: Cspan
the term span

set_anchorTime(self, anchorTime)

source code 

Set the anchor time for the event

Parameters:
  • anchorTime (string) - the anchorTime id

set_beginPoint(self, beginPoint)

source code 

Set the beginPoint for the event

Parameters:
  • beginPoint (string) - the beginPoint id

set_endPoint(self, endPoint)

source code 

Set the endPoint for the event

Parameters:
  • endPoint (string) - the endPoint id

set_id(self, this_id)

source code 

Set the identifier for the token

Parameters:
  • this_id (string) - the identifier

set_span(self, this_span)

source code 

Sets the span for the lemma

Parameters:
  • this_span (Cspan) - lemma identifier