探索文本结构
版本 11 包含了全新的高级工具 TextStructure,可用来分析和可视化文本.
生成一个表示普通句子语法结构的 TextElement 对象的嵌套集合.
In[1]:=
TextStructure["The cat sat on the mat."]
Out[1]=
仅显示词类标签.
In[2]:=
TextStructure["The cat sat on the mat.", "PartsOfSpeech"]
Out[2]=
用图形示意语法关系.
In[3]:=
TextStructure["The cat sat on the mat.", "DependencyGraphs"]
Out[3]=