def _should_invalidate_cache(self):
        data_mtime = os.path.getmtime(self.filename)
        cache_mtime = os.path.getmtime(self._cache_filename)
        return data_mtime > cache_mtime
dataset/ETHPy150Open kmike/opencorpora-tools/opencorpora/reader.py/CorpusReader._should_invalidate_cache/original