def update_word_count(self, loose_array):
        self._check_unfinalized()
        uniques, counts = np.unique(np.ravel(loose_array), return_counts=True)
        msg = "Loose arrays cannot have elements below the values of special "
        msg += "tokens as these indices are reserved"
        assert uniques.min() >= min(self.specials.values()), msg
        for k, v in zip(uniques, counts):
            self.counts_loose[k] += v
Update the corpus word counts given a loose array of word indices.
dataset/ETHPy150Open cemoody/lda2vec/lda2vec/corpus.py/Corpus.update_word_count