encode(text, {
        text_pair = null,
        add_special_tokens = true,
        return_token_type_ids = null,
    } = {}) {
        return this._encode_plus(text, {
            text_pair,
            add_special_tokens,
            return_token_type_ids,
        }).input_ids;
    }
Encodes a single text or a pair of texts using the model's tokenizer.

@param {string} text The text to encode.
@param {Object} options An optional object containing the following properties:
@param {string} [options.text_pair=null] The optional second text to encode.
@param {boolean} [options.add_special_tokens=true] Whether or not to add the special tokens associated with the corresponding model.
@param {boolean} [options.return_token_type_ids=null] Whether to return token_type_ids.
@returns {number[]} An array of token IDs representing the encoded text(s).