1
$\begingroup$

I have a no-trial question: I want to soft cluster the apps from Google Store. Most of the parameters are numbers, so no big clue. There are also "tags" but this is like using categorical features. I can use a one-hot encoding.

The pain is about the titles, which still contain a lot of useful info.

To keep the feature-vector small, I'm attempting several solutions, but nothing really satisfying.

I did a previous work using a sentence embedding solution from Facebook IA, which works great, however, the 8K vector does not seem a good idea for soft-clustering.

How would you "convert" the title string into a vector suitable for a later soft clustering algorithm?

$\endgroup$

1 Answer 1

1
$\begingroup$

There are two approaches:

  • The "classic" one, where you use something like bag-of-words, maybe with manual features (e.g. detect that something is a "brand" by matching the names of the brands of products), etc.
  • The "modern" approach would be to use a language model (e.g. BERT) to transform the sentences into a latent representation. You can think of the language model in this scenario as using an encoder in autoencoder, that takes the text as input and returns a representation in the form of a numeric vector of a pre-specified size. Those embeddings are known to encode the meanings in the sentences, though the results would be better if the model was trained on similar data as yours, so using an off-the-shelf pre-trained model may not create great features.
$\endgroup$
1
  • $\begingroup$ Yep, I started with the first approach, but after a while, I understood that it requires a lot of effort and manual work to understand which elements are composing the titles. On the other hand, too-big feature vectors are not achievable paths. I'll give a look at the auto-encoders, I like the "pre-specified size." $\endgroup$
    – ozw1z5rd
    Commented Jun 26, 2023 at 11:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.