class_docstr: Embedding class that loads token embedding vectors from file. Token
  embeddings not in the embedding file are initialized as specified in
  :attr:`hparams`.
  
  Args:
      vocab (dict): A dictionary that maps token strings to integer index.
      read_fn: Callable that takes `(filename, vocab, word_vecs)` and
          returns the updated `word_vecs`. E.g.,
          :func:`~texar.tf.data.embedding.load_word2vec` and
          :func:`~texar.tf.data.embedding.load_glove`.
class_docstr_tok: ["Embedding","class","that","loads","token","embedding","vectors","from","file",".","Token","embeddings","not","in","the","embedding","file","are","initialized","as","specified","in",":","attr",":","`","hparams","`",".","Args",":","vocab","(","dict",")",":","A","dictionary","that","maps","token","strings","to","integer","index",".","read_fn",":","Callable","that","takes","`","(","filename",",","vocab",",","word_vecs",")","`","and","returns","the","updated","`","word_vecs","`",".","E.g.",",",":","func",":","`","~texar.tf.data.embedding.load_word2vec","`","and",":","func",":","`","~texar.tf.data.embedding.load_glove","`","."]
docstr: 2D numpy array of shape `[vocab_size, embedding_dim]`.
          
docstr_tok: ["2D","numpy","array","of","shape","`","[","vocab_size",",","embedding_dim","]","`","."]
code: def word_vecs(self):
      """2D numpy array of shape `[vocab_size, embedding_dim]`."""
      return self._word_vecs
  
file_path: texar/texar/tf/data/embedding.py
imports: import tensorflow
  from tensorflow import gfile
  import numpy
  from texar.tf.utils import utils
  from texar.tf.hyperparams import HParams
label_desc: Use image node_id 3 for calling the Embedding obj's underlying member method code with example usage: obj.word_vecs() and returns: self