Package miopia :: Package preparator :: Module TextPreparator :: Class TextPreparator
[hide private]
[frames] | no frames]

Class TextPreparator

source code

object --+
         |
        TextPreparator

Tools for preparing a text to MaltParser in CoNLL 2006 format

Instance Methods [hide private]
 
__init__(self)
Constructor
source code
 
prepare(self, output_path, tagged_sentences) source code
 
_toConll2006(self, taggedTokens)
Returns: A String list in CoNLL 2006 format
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)
(Constructor)

source code 

Constructor

Overrides: object.__init__

prepare(self, output_path, tagged_sentences)

source code 
Parameters:
  • output_path - A path to the output conll file unparsed
  • tagged_sentences - A list of lists of tuples (word,TokenDependencyInfo). Each list of tuples is a tagged sentence.

_toConll2006(self, taggedTokens)

source code 
Parameters:
Returns:
A String list in CoNLL 2006 format