Skip to content
Discussion options

You must be logged in to vote

Hi @rkoystart , you can use something like nlp.pipe_names to see the components that underlie a particular spaCy model. You can couple this with nlp.get_pipe_config to see how that particular component was configured. For example:

import spacy

nlp = spacy.load("en_core_web_lg")
for pipe in nlp.pipe_names:
    print(nlp.get_pipe_config(pipe))

You can then cross-reference them with the architectures in the spaCy documentation. Note that a spaCy pipeline will not always contain only neural models, so this method is not exactly a one-to-one comparison with pytorch (that gives you the layers).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ljvmiranda921
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat / pipeline Feature: Processing pipeline and components
2 participants