# Map() function doesn't process

**URL:** <https://discuss.huggingface.co/t/map-function-doesnt-process/16822>\
**Category:** 🤗Datasets\
**Created:** [April 14, 2022, 4:51am UTC](https://discuss.huggingface.co/t/map-function-doesnt-process/16822 "2022-04-14T04:51:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shiqiw86](https://avatars.discourse-cdn.com/v4/letter/s/838e76/32.png) [@shiqiw86](https://discuss.huggingface.co/u/shiqiw86)\
**Post date:** [April 14, 2022, 4:51am UTC](https://discuss.huggingface.co/t/map-function-doesnt-process/16822/1 "2022-04-14T04:51:28Z")

</div>

I am trying map() function with the following code

```auto
dataset = load_dataset('csv', data_files={'train': 'train.csv', 'validation': 'dev.csv', 'test': 'test.csv'}, column_names=['sentence1', 'sentence2', 'label'])
tokenizer = AutoTokenizer.from_pretrained('roberta-large')

def tokenize_function(samples):
    return tokenizer(samples['sentence1'], samples['sentence2'], padding=True, truncation='True', max_length=256)

tokenized_datasets = dataset.map(tokenize_function, batched=True)

```

and the program seems to be stuck at this point.

 ![pic](https://us1.discourse-cdn.com/hellohellohello/original/2X/4/46e9ad9652f70b0705086b36837497787bcd5d0c.png)

---

<div class="post-metadata">

**Author:** ![mariosasko](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/mariosasko/32/31548_2.png) [@mariosasko](https://discuss.huggingface.co/u/mariosasko)\
**Post date:** [April 21, 2022, 12:01pm UTC](https://discuss.huggingface.co/t/map-function-doesnt-process/16822/2 "2022-04-21T12:01:11Z")

</div>

Hi! Can you interrupt the process (CTRL+C or Command-C) after it gets stuck and share the (entire) trackback?

---

<div class="post-metadata">

**Author:** ![shiqiw86](https://avatars.discourse-cdn.com/v4/letter/s/838e76/32.png) [@shiqiw86](https://discuss.huggingface.co/u/shiqiw86)\
**Post date:** [April 21, 2022, 8:38pm UTC](https://discuss.huggingface.co/t/map-function-doesnt-process/16822/3 "2022-04-21T20:38:45Z")

</div>

Thanks for the reply. I accidentlly put quotation mark around True in the function above, and as long as I fixed it, everything works just fine.
