Skip to content

where is the token_type_ids and attention_mas in tokenizer? #71

Description

@ljzj2

I am using android application 1.0

Microsoft.ML.Tokenizers and Microsoft.ML.OnnxRuntime

and I want to ask questions about my txt file.

I searched that I can use BertTokenizer and onnxruntime

tokenizer = BertTokenizer.Create(vocabPath, new BertOptions { RemoveNonSpacingMarks = true });

var encodings = tokenizer.EncodeToIds("This is a sample");

there is EncodeToIds and how to get token_type_ids ?

and when I get result _session.Run(inputs); what to do then?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions