# Using a dataset for a different task than it was intended

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fusing-a-dataset-for-a-different-task-than-it-was-intended%2F46622%3E%5C
**Category:** 🤗Datasets\
**Created:** [July 12, 2023, 10:33pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fusing-a-dataset-for-a-different-task-than-it-was-intended%2F46622 "2023-07-12T22:33:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![surya-narayanan](https://avatars.discourse-cdn.com/v4/letter/s/d2c977/32.png) [@surya-narayanan](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fsurya-narayanan)%5C
**Post date:** [July 12, 2023, 10:33pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fusing-a-dataset-for-a-different-task-than-it-was-intended%2F46622%2F1 "2023-07-12T22:33:42Z")

</div>

Hi, I want to use the rotten tomatoes dataset but for a task other than classification, but when I interleave the dataset, it throws `'ValueError: Column label is not present in features.'`. It seems that the label\_col must be there in the dataset for some reason?

```auto
  File "/home/suryahari/Vornoi/tryage-handoff-other-datasets.py", line 276, in create_dataloaders                                                                                                    
    dataset = interleave_datasets(dsfold, stopping_strategy="all_exhausted")                                                                                                                         
  File "/home/suryahari/miniconda3/envs/vornoi/lib/python3.10/site-packages/datasets/combine.py", line 134, in interleave_datasets                                                                   
    return _interleave_iterable_datasets(                                                                                                                                                            
  File "/home/suryahari/miniconda3/envs/vornoi/lib/python3.10/site-packages/datasets/iterable_dataset.py", line 1833, in _interleave_iterable_datasets                                               
    info = DatasetInfo.from_merge([d.info for d in datasets])                                                                                                                                        
  File "/home/suryahari/miniconda3/envs/vornoi/lib/python3.10/site-packages/datasets/info.py", line 275, in from_merge                                                                               
    dataset_infos = [dset_info.copy() for dset_info in dataset_infos if dset_info is not None]                                                                                                       
  File "/home/suryahari/miniconda3/envs/vornoi/lib/python3.10/site-packages/datasets/info.py", line 275, in <listcomp>                                                                               
    dataset_infos = [dset_info.copy() for dset_info in dataset_infos if dset_info is not None]                                                                                                       
  File "/home/suryahari/miniconda3/envs/vornoi/lib/python3.10/site-packages/datasets/info.py", line 378, in copy                                                                                     
    return self. __class__ (**{k: copy.deepcopy(v) for k, v in self. __dict__.items()})                                                                                                                 
  File "<string>", line 20, in __init__                                                                                                                                                              
  File "/home/suryahari/miniconda3/envs/vornoi/lib/python3.10/site-packages/datasets/info.py", line 208, in __post_init__                                                                            
    self.task_templates = [                                                                                                                                                                          
  File "/home/suryahari/miniconda3/envs/vornoi/lib/python3.10/site-packages/datasets/info.py", line 209, in <listcomp>                                                                               
    template.align_with_features(self.features) for template in (self.task_templates)                                                                                                                
  File "/home/suryahari/miniconda3/envs/vornoi/lib/python3.10/site-packages/datasets/tasks/text_classification.py", line 20, in align_with_features                                                  
    raise ValueError(f"Column {self.label_column} is not present in features.")                                                                                                                      
ValueError: Column label is not present in features.

```

---

<div class="post-metadata">

**Author:** ![lhoestq](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/lhoestq/32/64813_2.png) [@lhoestq](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Flhoestq)%5C
**Post date:** [July 24, 2023, 2:08pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fusing-a-dataset-for-a-different-task-than-it-was-intended%2F46622%2F2 "2023-07-24T14:08:26Z")

</div>

it looks like a bug with task templates, you can drop them using

```python
ds.info.task_templates = None

```
