Hello Tom,
the problem is that you pass an open csv.reader object to EventCorpus.
When you iterate over the object once, any subsequent `for line in
self.input` will not yield anything anymore (the csv stream has been
exhausted).
It is a Python thing, nothing to do with gensim. To fix your CSV
corpus, only pass the filename in constructor: `corpus =
EventCorpus("Event_data_small.csv")` and change `get_texts()` to re-
open the CSV file on each corpus pass: `for line in
csv.reader(open(self.input), ...)`.
Best,
Radim
> class EventCorpus(corpora.TextCorpus):
> def get_texts(self):
> for line in self.input:
> yield line[2].lower().split()
^^ this will