Error in TAPAS Tokenizer 
### System Info

```shell
Google Colab CPU
```


### Who can help?

@SaulLu  @NielsRogge

### Information

- [ ] The official example scripts
- [X] My own modified scripts

### Tasks

- [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...)
- [X] My own task or dataset (give details below)

### Reproduction

# TODO: should this be in the base class?
https://github.com/huggingface/transformers/blob/3f936df66287f557c6528912a9a68d7850913b9b/src/transformers/tokenization_utils.py#L507

Giving Error in the above function , though the code should not be called

from bs4 import BeautifulSoup
from urllib.request import Request, urlopen
import re
import regex
import pandas as pd # library for data analysis
import requests # library to handle requests
from bs4 import BeautifulSoup # library to parse HTML documents
import numpy as np
from transformers import TapasTokenizer, TapasModel
import pandas as pd

tokenizer = TapasTokenizer.from_pretrained("google/tapas-base")
model = TapasModel.from_pretrained("google/tapas-base")

table_class="wikitable sortable jquery-tablesorter"
response=requests.get("https://en.wikipedia.org/wiki/2017_EFL_Trophy_Final")
soup = BeautifulSoup(response.text, 'html.parser')
indiatable=soup.find('table',{'class':"wikitable"})
if indiatable:
    count +=1        
    df=pd.read_html(str(indiatable))
    df=pd.DataFrame(df[0])   
    df = df.astype(str, errors='ignore')
    queries=["2017 EFL Trophy Final"]     
    inputs = tokenizer(table=df, queries=queries, do_lower_case=False, do_basic_tokenize=False, padding="max_length", 
    return_tensors="pt", truncation = True)
        


![image](https://user-images.githubusercontent.com/19774925/170099245-50cb73e5-e009-4a31-9b53-fc4844890dad.png)


### Expected behavior

```shell
This attribute is set false explicitly, thus should not be called
```

Hello @shivangibithel,

You are entering the following loop:
https://github.com/huggingface/transformers/blob/71e602725b90f63f404109bae9f72cbdf755477b/src/transformers/tokenization_utils.py#L508-L514

because `do_lower_case` is a paramer that need to be filled in when initializing the tokenizer (or redefined in `from_pretrained`) but not in the `__call__` method. I'm also taking this opportunity to highlight that `do_basic_tokenize` is also a parameter that can't be changed in  the `__call__` method.

I hope this will help you! :relaxed: 

I also take this opportunity to share [some tips](https://github.com/huggingface/transformers/blob/main/ISSUES.md#the-github-issues) that would help us a lot to read quickly your issue :slightly_smiling_face: . <|||||>Closing this issue due to inactivity :slightly_smiling_face: 