1
$\begingroup$

I'm wondering if there is a way to train our own Bert tokenizer instead of using pre-trained tokenizer provided by huggingface?

$\endgroup$
1
  • $\begingroup$ Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. $\endgroup$
    – Community Bot
    Commented Jun 20, 2023 at 13:43

1 Answer 1

1
$\begingroup$

Yes, of course, it is possible, but that implies that you need to train again the whole model, not only the tokenizer.

Here you can find the steps to do everything with the HuggingFace libraries, including a complete example.

$\endgroup$
1
  • $\begingroup$ Thanks a lot! I think I got what I want. $\endgroup$ Commented Jun 20, 2023 at 17:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.