Mismatch between tutoriel and doc
COLLABORATOR
Hi, thanks for reporting! This line should be replaced with 
```python
dataset = dataset.map(lambda examples: tokenizer(examples["text"], return_tensors="np"), batched=True)
```
for it to work (the `return_tensors` part inside the `tokenizer` call).
2022-10-10T11:50:42Z
https://github.com/huggingface/datasets/issues/5093#issuecomment-1273198622
https://api.github.com/repos/huggingface/datasets/issues/5093
IC_kwDODunzps5L43ge
https://api.github.com/repos/huggingface/datasets/issues/comments/1273198622/reactions
2022-10-10T11:50:42Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1273198622
https://avatars.githubusercontent.com/u/47462742?v=4
https://api.github.com/users/mariosasko/events{/privacy}
https://api.github.com/users/mariosasko/followers
https://api.github.com/users/mariosasko/following{/other_user}
https://api.github.com/users/mariosasko/gists{/gist_id}
https://github.com/mariosasko
mariosasko
MDQ6VXNlcjQ3NDYyNzQy
https://api.github.com/users/mariosasko/orgs
https://api.github.com/users/mariosasko/received_events
https://api.github.com/users/mariosasko/repos
https://api.github.com/users/mariosasko/starred{/owner}{/repo}
https://api.github.com/users/mariosasko/subscriptions
User
https://api.github.com/users/mariosasko
public
CONTRIBUTOR
Can I work on this?
2022-10-10T13:03:48Z
https://github.com/huggingface/datasets/issues/5093#issuecomment-1273284154
https://api.github.com/repos/huggingface/datasets/issues/5093
IC_kwDODunzps5L5MY6
https://api.github.com/repos/huggingface/datasets/issues/comments/1273284154/reactions
2022-10-10T13:03:48Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1273284154
https://avatars.githubusercontent.com/u/9295277?v=4
https://api.github.com/users/riccardobucco/events{/privacy}
https://api.github.com/users/riccardobucco/followers
https://api.github.com/users/riccardobucco/following{/other_user}
https://api.github.com/users/riccardobucco/gists{/gist_id}
https://github.com/riccardobucco
riccardobucco
MDQ6VXNlcjkyOTUyNzc=
https://api.github.com/users/riccardobucco/orgs
https://api.github.com/users/riccardobucco/received_events
https://api.github.com/users/riccardobucco/repos
https://api.github.com/users/riccardobucco/starred{/owner}{/repo}
https://api.github.com/users/riccardobucco/subscriptions
User
https://api.github.com/users/riccardobucco
public
COLLABORATOR
Fixed in https://github.com/huggingface/datasets/pull/5095
2022-10-10T17:51:14Z
https://github.com/huggingface/datasets/issues/5093#issuecomment-1273643503
https://api.github.com/repos/huggingface/datasets/issues/5093
IC_kwDODunzps5L6kHv
https://api.github.com/repos/huggingface/datasets/issues/comments/1273643503/reactions
2022-10-10T17:51:14Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1273643503
https://avatars.githubusercontent.com/u/47462742?v=4
https://api.github.com/users/mariosasko/events{/privacy}
https://api.github.com/users/mariosasko/followers
https://api.github.com/users/mariosasko/following{/other_user}
https://api.github.com/users/mariosasko/gists{/gist_id}
https://github.com/mariosasko
mariosasko
MDQ6VXNlcjQ3NDYyNzQy
https://api.github.com/users/mariosasko/orgs
https://api.github.com/users/mariosasko/received_events
https://api.github.com/users/mariosasko/repos
https://api.github.com/users/mariosasko/starred{/owner}{/repo}
https://api.github.com/users/mariosasko/subscriptions
User
https://api.github.com/users/mariosasko
public
## Describe the bug
In the "Process text data" tutorial, [`map` has `return_tensors` as kwarg](https://huggingface.co/docs/datasets/main/en/nlp_process#map). It does not seem to appear in the [function documentation](https://huggingface.co/docs/datasets/main/en/package_reference/main_classes#datasets.Dataset.map), nor to work.

## Steps to reproduce the bug
MWE:
```python
from transformers import AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("bert-base-cased")

from datasets import load_dataset
dataset  = load_dataset("lhoestq/demo1", split="train")

dataset = dataset.map(lambda examples: tokenizer(examples["review"]), batched=True, return_tensors="pt")

```

## Expected results
return_tensors to be a valid kwarg :smiley: 

## Actual results
```python
>> TypeError: map() got an unexpected keyword argument 'return_tensors'
```

## Environment info
- `datasets` version: 2.3.2
- Platform: Linux-5.14.0-1052-oem-x86_64-with-glibc2.29
- Python version: 3.8.10
- PyArrow version: 8.0.0
- Pandas version: 1.4.3

