pyabsa.utils.text_utils.mlm
Module Contents
Functions
|
Returns a masked language model (MLM) and a tokenizer for the specified model and config. |
- pyabsa.utils.text_utils.mlm.get_mlm_and_tokenizer(model, config)[source]
Returns a masked language model (MLM) and a tokenizer for the specified model and config.
- Parameters:
model – The BERT-like model to use.
config – The configuration object to use.
- Returns:
A tuple containing the MLM and the tokenizer.