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

combining TEXT.build_vocab with BERT Embedding #2282

Open
muhalfian opened this issue Jan 27, 2025 · 0 comments
Open

combining TEXT.build_vocab with BERT Embedding #2282

muhalfian opened this issue Jan 27, 2025 · 0 comments

Comments

@muhalfian
Copy link

❓ Questions and Help

Description

Hi, we can use glove embedding when building vocab, using
something like:

MIN_FREQ = 2

TEXT.build_vocab(train_data, 
                 min_freq = MIN_FREQ,
                 vectors = "glove.6B.300d",
                 unk_init = torch.Tensor.normal_)

However, I want to use BERT embedding because I need a sophisticated model to compare the performance of multiple embeddings. How can I use BERT in build_vocab?

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