An abstract base class for read-only sequences whose values are
computed as needed. Lazy sequences act like tuples -- they can be
indexed, sliced, and iterated over; but they may not be modified.
The result of modifying a mutable element of a lazy sequence is
undefined. In particular, the modifications made to the element may or
may not persist, depending on whether and when the lazy sequence caches
that element's value or reconstructs it from scratch.
|
__len__(self)
Return the number of tokens in the corpus file underlying this corpus
view. |
source code
|
|
|
iterate_from(self,
start)
Return an iterator that generates the tokens in the corpus file
underlying this corpus view, starting at the token number
start . |
source code
|
|
|
|
|
__iter__(self)
Return an iterator that generates the tokens in the corpus file
underlying this corpus view. |
source code
|
|
|
count(self,
value)
Return the number of times this list contains value . |
source code
|
|
|
index(self,
value,
start=None,
stop=None)
Return the index of the first occurance of value in this
list that is greater than or equal to start and less
than stop . |
source code
|
|
|
__contains__(self,
value)
Return true if this list contains value . |
source code
|
|
|
__add__(self,
other)
Return a list concatenating self with other. |
source code
|
|
|
__radd__(self,
other)
Return a list concatenating other with self. |
source code
|
|
|
__mul__(self,
count)
Return a list concatenating self with itself count
times. |
source code
|
|
|
__rmul__(self,
count)
Return a list concatenating self with itself count
times. |
source code
|
|
|
__repr__(self)
Returns:
A string representation for this corpus view that is similar to a
list's representation; but if it would be more than 60 characters
long, it is truncated. |
source code
|
|
|
|
|
|
Inherited from object :
__delattr__ ,
__getattribute__ ,
__init__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__ ,
__str__
|