Wolfram Language

Processamento de texto e linguagem

Explore a estrutura dos textos

A versão 11 inclui uma nova e sofisticada ferramenta para analisar e visualizar textos, TextStructure.

Gere uma coleção agrupada de objetos de TextElement representando a estrutura gramatical de uma oração genérica.

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

Mostre apenas legendas dos elementos gramaticais.

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

Mostre as dependências gramaticais em uma representação gráfica.

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

Exemplos Relacionados

de en es fr ja ko ru zh