| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
util.AbstractLazySequence --+
|
ConcatenatedCorpusView
A 'view' of a corpus file that joins together one or more StreamBackedCorpusViews. At most one file handle is left open at any time.
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
|
_pieces A list of the corpus subviews that make up this concatenation. |
|||
|
_offsets A list of offsets, indicating the index at which each subview begins. |
|||
|
_open_piece The most recently accessed corpus subview (or None).
|
|||
|
|||
|
Return the number of tokens in the corpus file underlying this corpus view.
|
Return an iterator that generates the tokens in the corpus file
underlying this corpus view, starting at the token number
|
|
|||
_offsetsA list of offsets, indicating the index at which each subview begins. In particular: offsets[i] = sum([len(p) for p in pieces[:i]]) |
_open_pieceThe most recently accessed corpus subview (or |
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Mon Apr 11 14:39:45 2011 | http://epydoc.sourceforge.net |