TextElement

TextElement[text,props]

represents an element of text with the specified properties.

TextElement[{elem1,elem2,},props]

represents text formed from a sequence of elements.

TextElement[elems]

represents text where no properties are specified.

Details

  • TextElement is displayed in a notebook with property information shown underneath.
  • Properties are given in an association. The first value in the association is typically used in displaying the text element.
  • Typical keys in the props association include:
  • "GrammaticalUnit"part of speech or type of phrase

Examples

Basic Examples  (1)

TextElement for the noun "boat":

In[1]:=
Click for copyable input
Out[1]=

Create a list of TextElement representing words:

In[2]:=
Click for copyable input
Out[2]=

Wrap this list as a "GrammaticalUnit" entity into another TextElement:

In[3]:=
Click for copyable input
Out[3]=

See Also

TextStructure  TextWords  Labeled

Introduced in 2015
(10.3)