pubmedbert's vocabulary to spacy vocabulary #6121
-
|
Background:- Is there any way out where i can convert pubmedbert's vocabulary to spacy's vocab and use the same ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
With the pre-release of spaCy v3, it should be much easier to integrate transformers in your pipeline. Cf documentation here: https://nightly.spacy.io/usage/embeddings-transformers. This integration works via https://github.com/explosion/spacy-transformers, which can basically be used as an interface to the HuggingFace Transformer model hub. You'll then be able to use that Transformer as the first layer of your neural network models in spaCy, by "swapping out" the "standard" I hope that answers your question? If not, let me know! |
Beta Was this translation helpful? Give feedback.
With the pre-release of spaCy v3, it should be much easier to integrate transformers in your pipeline. Cf documentation here: https://nightly.spacy.io/usage/embeddings-transformers. This integration works via https://github.com/explosion/spacy-transformers, which can basically be used as an interface to the HuggingFace Transformer model hub. You'll then be able to use that Transformer as the first layer of your neural network models in spaCy, by "swapping out" the "standard"
tok2veclayer. This should hopefully give you a nice performance boost, like we obtained ourselves with our pretrained models.I hope that answers your question? If not, let me know!