def embed_text(tensors, embeddings):
  """Build embeddings using the word/char ids from `build_tensorize_text_fn`."""
  wids = tensors["wids"]
  cids = tensors["cids"]

  embedding_weights = embeddings.get_initialized_params(trainable=False)
  word_vecs = tf.nn.embedding_lookup(embedding_weights, wids)
  char_emb = common_layers.character_cnn(cids)
  return tf.concat([word_vecs, char_emb], -1)
Build embeddings using the word/char ids from `build_tensorize_text_fn`.
language/boolq/run_recurrent_model_boolq.py