0
$\begingroup$

i'm implementing BERT using Hugging face transformers method and tensorflow .

in the tutorial they've published the input of data need to be in the form of tf.dataset method or InputFeature object. i'm having some hard time managing to create the right Object .

I have a the texts, the tokenizer and the tokenized data , i have the attention masks and i have a ID list for each sentence in the length of 128 . how do i put them in the right format for the TFBertForSequenceClassification model?

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.