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

BERT trained on custom corpus #15

Open
anidiatm41 opened this issue Oct 10, 2020 · 1 comment
Open

BERT trained on custom corpus #15

anidiatm41 opened this issue Oct 10, 2020 · 1 comment

Comments

@anidiatm41
Copy link

Hi M. H. Kwon,
Your tokenization script is really helpful.

I trained a bert model with custom corpus using Google's Scripts like create_pretraining_data.py, run_pretraining.py ,extract_features.py etc..as a result I got vocab file, .tfrecord file, .jason file and check point files.

Now how to use those file for the below tasks:

  1. to predict a missing word in a given sentence?
  2. for next sentence prediction
  3. Q and A model

Need your help.

@kwonmha
Copy link
Owner

kwonmha commented Oct 13, 2020

Hi, anidiatm41,
Thank you.

For 3. Q and A model,
Visit official bert github.
There are instructions about how to do tasks like QA(SQuAD).

Predicting missing words and next sentence prediction are usually used for training.
If you want to predict missing words for practical purpose, you need to make your own code.
You can refer to evaluation part of run_pretraining.py.
It's almost same.

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