Skip to content

Combine zero-shot classification with keywords list #2050

Answered by MaartenGr
mzhadigerov asked this question in Q&A
Discussion options

You must be logged in to vote

However, I think that adding such a feature would be great, because in many cases domain experts might know the topics in the documents (already handled by zeroshot) and what words/keywords are associated with those topics.

Just to be sure I understand correctly, do you want the keywords to affect the topic assignment or the topic representation?

If it is the topic assignment, then your approach of concatenating the zero-shot label and keywords is actually quite reasonable! Embedding models typically work by merging word embeddings so adding them here makes sense to me. You could make this more complex by embedding the keywords and documents separately and then applying cosine similarit…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@mzhadigerov
Comment options

@MaartenGr
Comment options

Answer selected by mzhadigerov
@mzhadigerov
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants