Skip to content
Discussion options

You must be logged in to vote

To make a pipeline with a CuratedTransformer, bert-base-uncased component with weights from the Hugging Face Hub using spacy==3.7.2 and spacy-curated-transformers==0.2.1:

  1. spacy init config -p curated_transformer config1.cfg
  2. Edit config1.cfg appropriately for the model:
@architectures = "spacy-curated-transformers.BertTransformer.v1"
piece_encoder = {"@architectures":"spacy-curated-transformers.BertWordpieceEncoder.v1"}
  1. spacy init fill-curated-transformer --model-name bert-base-uncased config1.cfg config2.cfg
  2. spacy init fill-config config2.cfg config.cfg to get the working config.cfg below

Thanks to explosion/spacy-curated-transformers#22 (comment)

config.cfg

config.cfg

[paths]
train

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@DanShatford
Comment options

Comment options

You must be logged in to vote
1 reply
@DanShatford
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by DanShatford
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bugs and behaviour differing from documentation feat / transformer Feature: Transformer
2 participants