"SemanticExpression" (interpreter type)

Wolfram Language expression given in natural language.

DetailsDetails

Allowed FormsAllowed Forms

  • Any free-form linguistics that represents a valid Wolfram Language expression.

Restriction SpecificationsRestriction Specifications

InterpretationInterpretation

ExamplesExamplesopen allclose all

Basic Examples  (5)Basic Examples  (5)

Interpret expressions:

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

Restrict to a list of choices:

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

By default, all symbols are allowed. Restrict to a list of allowed symbols:

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

By default, a new context is created for the output symbols, but a custom context can be specified:

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

Specify contexts for the allowed and output symbols:

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