How to Load Any HuggingFace Model in spaCy

https://github.com/explosion/spaCy/discussions/10768

How to Load Any HuggingFace Model in spaCy #10768 – GitHub
You can use a different model just by changing the name parameter. Note that if you have any other components that rely on your Transformer, you will need to re-train your pipeline after doing this – you can’t just change the name and do inference again. Using Code. Using code to load an arbitrary Transformer isn’t complicated, but it does require a little more care than modifying the config.
github.com

Publié

dans

par

Étiquettes :