Wolfram Computation Meets Knowledge

The Wolfram Language:
Fast Introduction for Programmers

Show additional notes for:
All sections 
Get Started

Interpreters

Notes for Java programmers:

Wolfram Language interpreters do sophisticated semantic processing relying on linguistic information in the Wolfram Knowledgebase. Even with third-party libraries, this kind of functionality is not readily available for Java.

Notes for Python programmers:

Python does not have built-in natural language interpreters. Wolfram Language interpreters do sophisticated semantic processing, often relying on linguistic information in the Wolfram Knowledgebase.

Use Interpreter to interpret many types of natural language and other input:

In[1]:=1
Interpreter["Date"]["jun 23, 1988"]
Out[1]=1

In[2]:=2
Interpreter["City"]["LA"]
Out[2]=2

Interpreter handles "semantic" types that require interpretation of meaning:

In[1]:=1
Interpreter["SemanticNumber"]["three quarters"]
Out[1]=1

It also handles types that require computation:

In[2]:=2
Interpreter["ComputedCity"]["capital of poland"]
Out[2]=2

Restricted lets you restrict allowed inputs (e.g. numbers only in a certain range).

QUICK REFERENCE: Setting Up Interpreters


Which of these inputs will return a date?


Which of the following is appropriate to use for the interpreter function Interpreter["Date"]?


Which of these inputs will return a city?

© 2017 Wolfram. All rights reserved.