import tensorflow as tf

from .id_to_embedding import id_to_embedding
from .embeddings_to_embedding import embeddings_to_embedding
from .linear import linear
from . import dropout as do



def char2doc(document,
             true_labels,
             dropout_ratio,
             hidden_layer_size,
             output_layer_size):
  char_embeddings = id_to_embedding(document)
  document_embedding = embeddings_to_embedding(char_embeddings)

  def dropout(x):
    return do.dropout(x, dropout_ratio)

  hidden_layer = dropout(linear(document_embedding, hidden_layer_size))
  return dropout(linear(hidden_layer, output_layer_size))

import tensorflow as tf

from .id_to_embedding import id_to_embedding
from .embeddings_to_embedding import embeddings_to_embedding
from .linear import linear
from . import dropout as do



def char2doc(document,
             dropout_ratio,
             hidden_layer_size,
             output_layer_size):
  char_embeddings = id_to_embedding(document)
  document_embedding = embeddings_to_embedding(char_embeddings)

  def dropout(x):
    return do.dropout(x, dropout_ratio)

  hidden_layer = dropout(linear(document_embedding, hidden_layer_size))
  return dropout(linear(hidden_layer, output_layer_size))

Delete an unused argument