Simpletransformers: Even T5 example is not running

Created on 31 Mar 2021  路  4Comments  路  Source: ThilinaRajapakse/simpletransformers

When I'm copying and paste the t5 example from documentation

first, it raises the eval_df error then is raising this error

AssertionError: text input must of type "str" (single example), "List[str]" (batch or single pretokenized example) or "List[List[str]]" (batch of pretokenized examples).

Any suggestion on how to solve this?

Most helpful comment

Yeah, I am facing the same issue

All 4 comments

Yeah, I am facing the same issue

Is there any update on this issue?

Anything?

The issue is that the examples have ints as the target_text. It works if you use strings instead, i.e., "1" instead of 1. I'll update the docs to fix it (and will also just add a line to make sure numbers are converted to strings automatically).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rohanvartak1996 picture rohanvartak1996  路  3Comments

Jashjeet picture Jashjeet  路  6Comments

codeninja picture codeninja  路  8Comments

simepy picture simepy  路  4Comments

QAQOAO picture QAQOAO  路  5Comments