More on Visualization with displaCy
Let's take a deeper look into visualization with displaCy
Getting started with the displaCy demo
Go ahead and navigate here to use the interactive demo. Enter the text in the "Text to parse" box and then click the search icon on the right to generate the visualization. The result might look like the following:
The visualizer performs two syntactic parses on the submitted text: a POS tag and a dependency parse to visualize the sentence's syntactic structure. Don't worry about how POS tagging and dependency parsing work, as we'll explore them in the upcoming chapters. For now, just think of the result as a sentence structure.
Notice the two tick boxes, Merge Punctuation and Merge Phrases. Merging punctuation merges the punctuation tokens into the previous token and serves a more compact visualization (it works like a charm on long documents).
The second option, Merge Phrases, again gives more compact dependency trees. This option merges adjectives and nouns into one phrase; if we don't merge, then adjectives and nouns will be displayed individually. This feature is useful for visualizing long sentences with many noun phrases. Let's see the difference with an example sentence: They were beautiful and healthy kids with strong
...