get_parallelsentences(self,
start=None,
end=None)
| source code
|
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, ...]
- Returns:
- a list of ParallelSentence objects
- Overrides:
genericreader.GenericReader.get_parallelsentences
|