tf.estimator.VocabInfo

Class VocabInfo

Aliases:

  • Class tf.estimator.VocabInfo
  • Class tf.train.VocabInfo

Defined in tensorflow/python/training/warm_starting_util.py.

Vocabulary information for warm-starting.

See WarmStartSettings for examples of using VocabInfo to warm-start.

Attributes:

  • new_vocab: [Required] A path to the new vocabulary file (used with the model to be trained).
  • new_vocab_size: [Required] An integer indicating how many entries of the new vocabulary will used in training.
  • num_oov_buckets: [Required] An integer indicating how many OOV buckets are associated with the vocabulary.
  • old_vocab: [Required] A path to the old vocabulary file (used with the checkpoint to be warm-started from).
  • old_vocab_size: [Optional] An integer indicating how many entries of the old vocabulary were used in the creation of the checkpoint. If not provided, the entire old vocabulary will be used.
  • backup_initializer: [Optional] A variable initializer used for variables corresponding to new vocabulary entries and OOV. If not provided, these entries will be zero-initialized.

Properties

backup_initializer

Alias for field number 5

new_vocab

Alias for field number 0

new_vocab_size

Alias for field number 1

num_oov_buckets

Alias for field number 2

old_vocab

Alias for field number 3

old_vocab_size

Alias for field number 4

Methods

__new__

@staticmethod
__new__(
    cls,
    new_vocab,
    new_vocab_size,
    num_oov_buckets,
    old_vocab,
    old_vocab_size=-1,
    backup_initializer=None
)