Added as_slices parameter to view_contexts in BaseCorpus.