You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var encoded = tokenizer.Encode(32, sentence);
var result = model.Transform(encoded);
var bertInput = new ModelInput()
{
InputIds = encoded.InputIds, // this does not compile because encoded is a list of tuples
AttentionMask = encoded.AttentionMask,
TokenTypeIds = encoded.TokenTypeIds,
};
Can you provide a complete working example using ML.NET and your BertTokenizers?
The text was updated successfully, but these errors were encountered:
I am trying to use your code.
var encoded = tokenizer.Encode(32, sentence);
var result = model.Transform(encoded);
var bertInput = new ModelInput()
{
InputIds = encoded.InputIds, // this does not compile because encoded is a list of tuples
AttentionMask = encoded.AttentionMask,
TokenTypeIds = encoded.TokenTypeIds,
};
Can you provide a complete working example using ML.NET and your BertTokenizers?
The text was updated successfully, but these errors were encountered: