nltk.chain

class nltk.chain

chain(*iterables) –> chain object

Return a chain object whose .next() method returns elements from the first iterable until it is exhausted, then elements from the next iterable, until all of the iterables are exhausted.

Methods

from_iterable chain.from_iterable(iterable) –> chain object

Attributes

next