Skip to content
Discussion options

You must be logged in to vote

This appears to be a followup to #11059.

Please note the word is "chunk", not "chuck".

Can you provide an example of the code that isn't working for you? This works for me.

import spacy

from spacy.lang.en import EnglishDefaults

def noun_chunks_custom(doclike):
    print("inside custom function")
    return
    yield

EnglishDefaults.syntax_iterators = {"noun_chunks": noun_chunks_custom}

nlp = spacy.blank("en")

doc = nlp("blah blah")
print(list(doc.noun_chunks))

Replies: 1 comment 1 reply

Comment options

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

Answer selected by adrianeboyd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang / en English language data and models feat / pipeline Feature: Processing pipeline and components
2 participants