inputs = tokenizer(batch["text"], padding=True, truncation=True, maxlength=MAXLENGTH,…
- User
inputs = tokenizer(batch["text"], padding=True, truncation=True, max_length=MAX_LENGTH, return_tensors="pt") TypeError: 'bool' object is not callable
- Assistant
The error message you're encountering,
TypeError: 'bool' object is not callable, typically occurs when you try to call a boolean value as if it were a function. In Python, this often happens when an object you expected to be a function or callable is actually a boolean value ( or ).