I'm using LSTM to categorize medium-sized pieces of text. Each item to be categorized has several free-form text fields, in addition to several categorical fields. What is the best approach to using all this information for categorization? I see two options:

  • Concatenate the text from all fields, preceding each field content with a special token. Run concatenated text through LSTM.
  • Train one model per field. Concatenate output from each model in a hidden layer and pass into subsequent layers.

What are the benefits of each of the approaches? Is there an alternative I'm missing?

  • $\begingroup$ Could you give an example of data for both. Have you proceeded and have some results at all? $\endgroup$ – benbyford Apr 9 '19 at 13:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.