attempts to give the best semantic interpretation of the specified free-form string as a Wolfram Language expression.
filters possible semantic interpretations, returning the best one that matches the specified pattern.
returns the semantic interpretation wrapped with the specified head.
Details and Options
- "string" can be natural-language English text.
- Types of objects returned include numbers, formulas, Entity objects, DateObject, etc.
- The following options can be given:
AmbiguityFunction Automatic function to apply to the collection of possible interpretations GeoLocation $GeoLocation geo location to assume TimeZone $TimeZone time zone to assume for semantic interpretation
- If multiple interpretations are found, SemanticInterpretation supplies the list of them (with the best first) to the function specified as the setting for AmbiguityFunction. The result of applying that function is returned as the result from SemanticInterpretation.
Examplesopen allclose all
The AmbiguityFunction is not used if there is no ambiguity: