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

Query: Inference on new data #1

Open
dwlmt opened this issue Jul 17, 2023 · 1 comment
Open

Query: Inference on new data #1

dwlmt opened this issue Jul 17, 2023 · 1 comment

Comments

@dwlmt
Copy link

dwlmt commented Jul 17, 2023

I came across your paper, and it seems like a promising alternative to BERTopic. Running your code on a small custom dataset with a custom sentence encoder produced good topics. One thing is, I couldn't see a way of inferring topics on new documents in the code without rebuilding all the topics. I assume for zero-shot classification, I could just find the nearest neighbours against vec_t for each sentence and resolve it to the topic word list? But not sure if there is a better way of approaching this.

@JohnTailor
Copy link
Owner

Thanks for the comment! Sorry for replying late. You are right, the library so far does not support (incremental) inference. Your approach seems reasonable.

I might add that feature in the future. Currently, the paper is under review at a conference and I will work further on it, once the paper gets accepted.

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

2 participants