# Clustering of news combining headline and main article

I want to classify German police news articles and do an automated classification/clustering with regards to the kind of crime committed. Thus far I am not getting great results. Often times the headline is pretty telling but sometimes it is not that revealing, so I need to include the main article to do a proper clustering on all articles.

However the headline is a very good indicator and I don't want to throw it away. I could simply combine the words from headline and main article but I think there should be more weight given to the headline. Has somebody an idea how to do this?

Put more weight on the title.

For example if you are using tf-idf, you first compute the tf-idf vectors of headline and body separately. Then you combine them into a single vector by simply adding both vectors and rescaling to unit length. That would put 50% of the weight onto the headline even though it is much shorter.

• that sounds like a pretty smart idea, thank you very much – Hans Geber Apr 26 '19 at 19:51
• so I found out that gensim has the option for the LSI-Model to do an update with a decay parameter. Of course the coherence score goes down a little bit, after I update with the corpus from the news, but thus far it looks pretty promising – Hans Geber Apr 29 '19 at 12:55

One idea here is to train two distinct recurrent networks and then merge their outputs, and then have some dense layers after. This way the model can learn different information for the headline and story, something like this:

from keras.layers.core import Dense, Activation
from keras.layers import concatenate, LSTM

modela = Sequential()

modelb = Sequential()

merged_output = concatenate([modela.output, modelb.output])

model_combined = Sequential()