Added remove_empty in BaseCorpus.