Answers.Body: <h3>Briefly:</h3>
  
  <p>I think what you are looking for is an RNN network (Either LSTM or GRU) with the <em>many-to-many</em> topology.</p>
  
  <h3>Explanation:</h3>
  
  <p>Clearly your input is the sentences (or to be more precise, the an embedding of your sentences, because you cannot feed the raw text to the network). then for each sentence you want to assign a value, which means for n inputs, you need n outputs. This is the many-to-many architecture.</p>
  
  <p>Moreover, you might want to check the <em>Bi-directional</em> LSTM for your study. Not relevant to your question, but worth mentioning.</p>
  
  <p>For more information, refer to <a href="https://stackoverflow.com/questions/43034960/many-to-one-and-many-to-many-lstm-examples-in-keras">this</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-05-13T09:28:27.797Z
Answers.LastActivityDate: 2020-05-13T09:28:27.797Z
Answers.UserDisplayName: Alireza
Body: <p>I am trying to build a model for extractive text summarization using keras sequential layers. I am having a hard time trying to understand how to input my x data. Should it be an array of documents with each document containing an array of sentences? or should I further break it down to each sentence containing an array of words?</p>
  
  <p>The y input is basically a binary classification of each sentence to check whether or not they belong to the summary of the document.</p>
  
  <p>The first layer is an embedding layer and I'm using 100d Glove word embedding.</p>
  
  <p>P.s: I am new to machine learning.</p>
  
Tags: <neural-networks><machine-learning><word-embedding><text-summarization>
Title: What should the dimension of the input be for text summarization?
UserDisplayName: inquisitive
ThreadText: # What should the dimension of the input be for text summarization?
  
  (Asked by: username_0 on 2020-05-13)
  
  I am trying to build a model for extractive text summarization using keras sequential layers. I am having a hard time trying to understand how to input my x data. Should it be an array of documents with each document containing an array of sentences? or should I further break it down to each sentence containing an array of words?
  
  The y input is basically a binary classification of each sentence to check whether or not they belong to the summary of the document.
  
  The first layer is an embedding layer and I'm using 100d Glove word embedding.
  
  P.s: I am new to machine learning.
  
  **Tags:** neural-networks, machine-learning, word-embedding, text-summarization
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2020-05-13. Score: 1
  
  ### Briefly:
  
  I think what you are looking for is an RNN network (Either LSTM or GRU) with the *many-to-many* topology.
  
  ### Explanation:
  
  Clearly your input is the sentences (or to be more precise, the an embedding of your sentences, because you cannot feed the raw text to the network). then for each sentence you want to assign a value, which means for n inputs, you need n outputs. This is the many-to-many architecture.
  
  Moreover, you might want to check the *Bi-directional* LSTM for your study. Not relevant to your question, but worth mentioning.
  
  For more information, refer to [this](https://stackoverflow.com/questions/43034960/many-to-one-and-many-to-many-lstm-examples-in-keras)
  
  
  ---
  
  