There's a couple of existing questions about getting noun chunks in spacy, which is relatively straightforward.
What I'm interested in is replicating the dependency parsing on top of pre-specified ngrams inside a sentence. Like in the example below, from this spacy talk, where Alex Smith
and East London
are treated as a single token in the dependency parse.