Trees | Indices | Help |
|
---|
|
genericreader.GenericReader --+ | GenericXmlReader
classdocs
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
Constructor. Creates an XML object that handles ranking file data
|
Loads the data of the file into memory. It is useful if the Classes has been asked not to load the filename upon initialization
|
Convenience function that splits an XML file into parts and writes them directly to the disk into .part files with similar filenames. The construction of the resulting filenames defined by parameters @param parts Number of parts to split into @type int @param re_split Regular expression which should define two (bracketed) groups upon the filename. The resulting files will have the part number inserted in the filename between these two parts |
|
Returns the contents of the parsed file into an a list with ParallelSentence objects. Note that this will cause all the data of the file to be loaded into system memory at once. For big data sets this may not be optimal, so consider sentence-by-sentence reading with SAX or CElementTree (e.g. saxjcml.py) @return the list of parallel sentences @rtype [ParallelSentence, ...]
|
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Jul 18 11:46:12 2014 | http://epydoc.sourceforge.net |