Wolfram 语言

图与网络

文字的语法结构

用新的 TextStructure 函数制作并可视化一个句子或结构中的语法依赖关系.

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

短语结构图.

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

相关范例

de en es fr ja ko pt-br ru