# Arguments in encode\_plus

**URL:** <https://discuss.huggingface.co/t/arguments-in-encode-plus/2355>\
**Category:** 🤗Transformers\
**Created:** [November 29, 2020, 8:52pm UTC](https://discuss.huggingface.co/t/arguments-in-encode-plus/2355 "2020-11-29T20:52:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shainaraza](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/shainaraza/32/2854_2.png) [@shainaraza](https://discuss.huggingface.co/u/shainaraza)\
**Post date:** [November 29, 2020, 8:52pm UTC](https://discuss.huggingface.co/t/arguments-in-encode-plus/2355/1 "2020-11-29T20:52:30Z")

</div>

Just a general question, can I give multiple arguments in encode\_plus

> Blockquote  
> encoding = self.tokenizer.encode\_plus(

```
  author,

  source,

  title,

  content,

  add_special_tokens=True,

  max_length=self.max_len,

  return_token_type_ids=False,

  pad_to_max_length=True,

  return_attention_mask=True,

  return_tensors='pt',

)

```

this one is giving me error

---

<div class="post-metadata">

**Author:** ![shainaraza](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/shainaraza/32/2854_2.png) [@shainaraza](https://discuss.huggingface.co/u/shainaraza)\
**Post date:** [November 29, 2020, 8:57pm UTC](https://discuss.huggingface.co/t/arguments-in-encode-plus/2355/2 "2020-11-29T20:57:41Z")

</div>

ignore it, solved

```
encoding = self.tokenizer.encode_plus(

      [author,

      source,

      title,

      content],

      add_special_tokens=True,

      max_length=self.max_len,

      return_token_type_ids=False,

      pad_to_max_length=True,

      return_attention_mask=True,

      return_tensors='pt',

    )
```
