Skip to content

Instantly share code, notes, and snippets.

@nbertagnolli
Last active November 23, 2021 05:05
Show Gist options
  • Save nbertagnolli/3dd87f8702570749dc7c111ae8997189 to your computer and use it in GitHub Desktop.
Save nbertagnolli/3dd87f8702570749dc7c111ae8997189 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nialloriordan
Copy link

@nbertagnolli I really enjoyed your BERT tutorial with scikit-learn. I have updated the code to include padding and to explicitly truncate long text. Please feel free to update the code from my fork here: https://gist.github.com/nialloriordan/4deec5ad99613f02201b65f26d66cf48

@nbertagnolli
Copy link
Author

Thanks!  I'm glad that you liked it!  I'll take a look later this week! 

@teddddddy
Copy link

Thanks a lot for sharing

@ddenz
Copy link

ddenz commented Nov 23, 2021

Hi! Thanks for this great tutorial. I have tried running your notebook, but model.fit() raises AttributeError: 'BertTransformer' object has no attribute 'bert_model'. Any ideas how to fix this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment