def add_documents(self, documents):
        for docno, document in enumerate(documents):
            if docno % 10000 == 0:
                logger.info("adding document #%i to %s" % (docno, self))
            _ = self.doc2bow(document, allow_update=True) # ignore the result, here we only care about updating token ids
        logger.info("built %s from %i documents (total %i corpus positions)" %
                     (self, self.num_docs, self.num_pos))
Tests gs://bucket/*/subdir matching.
dataset/ETHPy150Open largelymfs/topical_word_embeddings/TWE-1/gensim/corpora/hashdictionary.py/HashDictionary.add_documents--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/gsutil/gslib/tests/test_wildcard_iterator.py/CloudWildcardIteratorTests.testWildcardPlusSubdirMatch