(self, filename)
Load from a vocab file.
Load from a vocab file.
Load from a vocab file .
def _load_from_file(self, filename):
    """Load from a vocab file."""
    if not tf.io.gfile.exists(filename):
      raise ValueError("File %s not found" % filename)
    with tf.io.gfile.GFile(filename) as f:
      self._load_from_file_object(f)
def _load_from_file ( self , filename ) : if not tf . io . gfile . exists ( filename ) : raise ValueError ( "File %s not found" % filename ) with tf . io . gfile . GFile ( filename ) as f : self . _load_from_file_object ( f )