Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recommendation model with text embedding as item feature #713

Open
robin495 opened this issue Jun 18, 2024 · 0 comments
Open

Recommendation model with text embedding as item feature #713

robin495 opened this issue Jun 18, 2024 · 0 comments

Comments

@robin495
Copy link

robin495 commented Jun 18, 2024

Hi!

I'm trying to build a model with text embeddings from books as one input parameter along with reading history.

I have done text analysis to get fixed sized embeddings representing each books content. I have a 1x150 dimensional vector with the text embeddings. Is it correct to build the item feature data that is feeded into the dataset.build_item_features on the following format: [item_id:{feature0:embeddingvector[0],feature1:embeddingvector[1]} .. etc]?

Like this example:

embedding_vector = [1,2,1,0]

item_data_test = [['item_id1',{'feature_0':1,'feature_1':2,'feature_2':1,'feature_3':0}]]

item_features_test = dataset.build_item_features(item_data_test, normalize=True)

Thanks,
Robin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant