Explore the Structure of Texts
Version 11 includes a new sophisticated tool to analyze and visualize texts, TextStructure.
Generate a nested collection of TextElement objects representing the grammatical structure of a generic sentence.
In[1]:=
![Click for copyable input](assets.en/explore-the-structure-of-texts/In_94.png)
TextStructure["The cat sat on the mat."]
Out[1]=
![](assets.en/explore-the-structure-of-texts/O_62.png)
Display parts of speech tags only.
In[2]:=
![Click for copyable input](assets.en/explore-the-structure-of-texts/In_95.png)
TextStructure["The cat sat on the mat.", "PartsOfSpeech"]
Out[2]=
![](assets.en/explore-the-structure-of-texts/O_63.png)
Return the grammatical dependencies as a graph.
In[3]:=
![Click for copyable input](assets.en/explore-the-structure-of-texts/In_96.png)
TextStructure["The cat sat on the mat.", "DependencyGraphs"]
Out[3]=
![](assets.en/explore-the-structure-of-texts/O_64.png)