Package miopia :: Package parser :: Module TokenDependencyInfo :: Class TokenDependencyInfo
[hide private]
[frames] | no frames]

Class TokenDependencyInfo

source code

object --+
         |
        TokenDependencyInfo

It Saves information of a token coherently with the CoNLL 2006 format

Instance Methods [hide private]
 
__init__(self, form, finetag, head, deprel)
Constructor
source code
 
get_form(self) source code
 
get_finetag(self) source code
 
set_finetag(self, finetag) source code
 
get_head(self) source code
 
set_head(self, head) source code
 
get_deprel(self) source code
 
set_deprel(self, deprel) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, form, finetag, head, deprel)
(Constructor)

source code 

Constructor

Parameters:
  • form - A string. The 'word' of the token.
  • finetag - A string. The part-of-speech tag of the token.
  • head - An integer. The identifier of the head of the token.
  • deprel - An integer. The identifier of the dependent node of the token.
Overrides: object.__init__