transformers icon indicating copy to clipboard operation
transformers copied to clipboard

Choosing between adding frequent out of vocab words and doing further pretraining.

Open PieterDujardin opened this issue 6 years ago • 1 comments

I have a dutch medical dataset (for Namen Entity Recognition) which contains a lot of domain-specific words. The dutch BERT tokenizer therefor outputs a lot of [UNK] tokens when it tokenizes. Given that I dispose over a corpus of 60k labelled tokens, and right now I have also a relatively small annotated corpus of 185k tokens, would it be best to:

  • just add the most frequent out of vocab words to the vocab of the tokenizer
  • start from a BERT checkpoint and do further pretraining on the unlabeled dataset (which is now of size 185k which is pretty small I assume..). There might be a possibility for me to obtain a much larger unannotated dataset of potentially millions of (unlabelled) tokens, but I was wondering if even millions of tokens is enough to do some meaningful further pretraining? Thanks!

PieterDujardin avatar Apr 03 '20 13:04 PieterDujardin

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 02 '20 16:06 stale[bot]