Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

The tag has no usage guidance.

8
votes
1answer
90 views

Lexical scanning and parsing in a toy language

I'm trying to do lexical scanning and parsing in a toy language. One with just functions (of the form $f(a,\,b,\,c,\,...)$, ended with semicolons) and special tokens (such as ...
2
votes
1answer
59 views

Interpreter[“Country”] returns only South Africa as a single item list

I am working with a list of countries that I then want to utilize Interpreter on for some later functionality. For some reason, "South Africa" returns as a single ...
0
votes
0answers
36 views

Interpreter for Quantities without magnitude

When using a quantity interpreter on a unit without magnitude, the interpreter fails, but works fine on quantities with magnitudes. Ex: ...
14
votes
1answer
231 views

What to expect from Interpreter[“Expression”]?

Sometimes it works ok Interpreter["Expression"]["1"] 1 sometimes not: Interpreter["Expression"]["Graphics[{}]"] Why ...
0
votes
0answers
54 views

Why does Interpreter fail intermittently?

I notice that, when I process CSV files and using Interpreter, I sometimes get Interpreter failure for certain dates as shown below: I am using the following ...
5
votes
1answer
43 views

Alternative to failing Interpreter[“Location”] for Postcodes in the United Kingdom

Interpreter constrained for the form "Location" returns coordinates of a geographic location. For example ...
0
votes
0answers
56 views

Control interpretation by Import

When I Import an Excel file, sometimes Mathematica interprets the dates as DateObjects, and sometimes it doesn't. How can I ...
4
votes
3answers
313 views

Get CountryData from 3 letter abbreviation of country name

On browsing ATP rankings I stumbled on a simple problem ...
1
vote
1answer
32 views

Overriding an interpreter failure message in a FormFunction expression

I am building a Form to capture several non-zero numbers as inputs. The basic code is: ...
7
votes
2answers
609 views

How to speed up interpreting numbers from strings?

In processing a large text file I have batches from ReadList of 100,000 Records of the form. ...
15
votes
1answer
393 views

Programming of a natural language interface

I've just started using the Mathematica natural language interface and found it very interesting. After doing some research, I found some documentation on the "Programmable Linguistic Interface": ...
1
vote
0answers
83 views

Redefined MakeExpression leads to error in interpreting

I’d like to have a TemplateBox that interprets as its content boxes: ...
14
votes
3answers
626 views

Inverse of Interpreter[“Color”]: Convert a RGBColor to a natural language color name

What is the best way to create the inverse function of Interpreter["Color"]? That function takes a natural language color name like ...
0
votes
1answer
135 views

Interpreter fails to parse Numbers and Percents

Interpreter fails on Association with mixed type Values: ...
1
vote
0answers
182 views

Can I use Mathematica to translate a English word to a Chinese characters?

I'm Chinese. I want to translate an Entity name to Chinese characterc. What should I do? Can I use Mathematica to translate a English word to a Chinese characters?
2
votes
0answers
144 views

Improving semantic interpretation of dates

SemanticInterpretation and Interpreter are promising but imperfect, eg extracting dates and calendar expressions from semi-...
5
votes
1answer
97 views

“ComputedDate”'s interpretation of “next”

Today Interpreter["ComputedDate"] /@ {"next Monday", "next Tuesday", "next Wednesday"} What explains this behavior? Can it ...
1
vote
0answers
524 views

Abort Dynamic Evaluation error

I have been trying to run the example for geographic visualization at: Density of Library Books in the United States The first two lines of this code are: ...
13
votes
2answers
992 views

Parsing a CSV file using Interpreter

The new Interpreter functionality in version 10 looks like it has the potential to make parsing custom data formats very easy. I'm trying to create a CSV parser. ...