텍스트의 구조 조사
버전 11은 텍스트를 분석하고 시각화하기 위한 새로운 최첨단 도구 TextStructure를 포함하고 있습니다.
일반적인 문장의 문법 구조를 나타내는 TextElement 객체의 중첩된 컬랙션을 생성합니다.
In[1]:=
![Click for copyable input](assets.ko/explore-the-structure-of-texts/In_94.png)
TextStructure["The cat sat on the mat."]
Out[1]=
![](assets.ko/explore-the-structure-of-texts/O_62.png)
품사 태그만을 표시합니다.
In[2]:=
![Click for copyable input](assets.ko/explore-the-structure-of-texts/In_95.png)
TextStructure["The cat sat on the mat.", "PartsOfSpeech"]
Out[2]=
![](assets.ko/explore-the-structure-of-texts/O_63.png)
문법적 의존 관계를 그래프로 반환합니다.
In[3]:=
![Click for copyable input](assets.ko/explore-the-structure-of-texts/In_96.png)
TextStructure["The cat sat on the mat.", "DependencyGraphs"]
Out[3]=
![](assets.ko/explore-the-structure-of-texts/O_64.png)