Healthcare, Medcat, NLP, Hugging Face, Bert.
tokenizers, that will take care of everything: from medcat.datasets.tokenizer_ner import TokenizerNER from transformers import AutoTokenizer hf_tokenizer = AutoTokenizer.from_pretrained('<name>') id2type = {} for i in range(hf_tokenizer.vocab_size): id2type[i] = 'sub' if