# Arguments in encode\_plus

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Farguments-in-encode-plus%2F2355%3E%5C
**Category:** 🤗Transformers\
**Created:** [November 29, 2020, 8:52pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Farguments-in-encode-plus%2F2355 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fshainaraza)%5C
**Post date:** [November 29, 2020, 8:52pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Farguments-in-encode-plus%2F2355%2F1 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fshainaraza)%5C
**Post date:** [November 29, 2020, 8:57pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Farguments-in-encode-plus%2F2355%2F2 "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',

    )
```
