HuggingFaceTokenizer: HuggingFaceTokenizer

HuggingFaceTokenizerR Documentation

HuggingFaceTokenizer

Description

Abstract class for all tokenizers used with the 'transformers' library.

Value

Does return a new object of this class.

Super classes

aifeducation::AIFEMaster -> aifeducation::TokenizerBase -> HuggingFaceTokenizer

Methods

Public methods

Inherited methods

Method create_from_hf()

Creates a tokenizer from a pretrained model

Usage
HuggingFaceTokenizer$create_from_hf(model_dir)
Arguments
model_dir

Path where the model is stored.

Returns

Does return a new object of this class.


Method clone()

The objects of this class are cloneable with this method.

Usage
HuggingFaceTokenizer$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

See Also

Other Tokenizer: WordPieceTokenizer


aifeducation documentation built on Nov. 19, 2025, 5:08 p.m.