tok_trainer {tok}R Documentation

Generic training class

Description

Generic training class

Generic training class

Public fields

.trainer

a pointer to a raw trainer

Methods

Public methods


Method new()

Initializes a generic trainer from a raw trainer

Usage
tok_trainer$new(trainer)
Arguments
trainer

raw trainer (internal)


Method clone()

The objects of this class are cloneable with this method.

Usage
tok_trainer$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

See Also

Other trainer: trainer_bpe, trainer_unigram, trainer_wordpiece


[Package tok version 0.1.3 Index]