Explore la estructura de los textos
La versión 11 incluye una nueva sofisticada herramienta para analizar y visualizar textos, TextStructure.
Genere una colección anidada de objetos de TextElement representando la estructura gramatical de una oración genérica.
In[1]:=
![Click for copyable input](assets.es/explore-the-structure-of-texts/In_94.png)
TextStructure["The cat sat on the mat."]
Out[1]=
![](assets.es/explore-the-structure-of-texts/O_62.png)
Muestre sólo las etiquetas de los elementos gramaticales.
In[2]:=
![Click for copyable input](assets.es/explore-the-structure-of-texts/In_95.png)
TextStructure["The cat sat on the mat.", "PartsOfSpeech"]
Out[2]=
![](assets.es/explore-the-structure-of-texts/O_63.png)
Regrese las dependencias gramaticales como un grafo.
In[3]:=
![Click for copyable input](assets.es/explore-the-structure-of-texts/In_96.png)
TextStructure["The cat sat on the mat.", "DependencyGraphs"]
Out[3]=
![](assets.es/explore-the-structure-of-texts/O_64.png)