Wolfram Language

Graphs and Networks

Grammatical Structure of Texts

Build and visualize the grammatical dependencies in a sentence or structure with the new TextStructure function.

In[1]:=
Click for copyable input
TextStructure["The cat sat on the mat.", "DependencyGraphs"]
Out[1]=

Graph of phrase structure.

In[2]:=
Click for copyable input
TextStructure["The cat sat on the mat.", "ConstituentGraphs"]
Out[2]=

Related Examples

de es fr ja ko pt-br ru zh