Questions tagged [interpreter]
The interpreter tag has no summary.
32 questions
7
votes
1
answer
140
views
What is the behavior of `FromRomanNumeral` on inputs with non-roman characters?
The documentation for the FromRomanNumeral function states that
any combination of valid digits is interpreted as an integer:
...
0
votes
0
answers
36
views
How do you limit the base of InformationUnit [duplicate]
Interpreter[Restricted["Quantity", "Megabytes"]][{"1 KB", "167 MB", "1.1 GB"}]
As far as I know, this base is ...
1
vote
0
answers
108
views
Bug in Interpreter with DelimitedSequence and alternatives?
In the context of this question I tried setting up an interpreter that converts a string to a list of numbers, while converting "NA" to ...
7
votes
3
answers
334
views
How to identify and select the first name from a string containing a first name and a last name?
Is it possible to identify and select the first name in a string that is made up of a first name and a last name, e.g.:
...
7
votes
1
answer
178
views
How can I tell the WL auto-magic date interpreter to use a day-first interpretation if there is ambiguity?
I know you can use DateObject[{"05-08-2022", {"Day", "Month", "Year" }}] to tell WL the date format explicitly, but a rigid ...
2
votes
1
answer
112
views
Performance gains by avoiding the interpreter function
I have this.
...
3
votes
1
answer
136
views
How to determine population from a list of arbitrary jurisdictions (cities, states, counties, et al.)?
I am an aspiring data scientist who's working on a passion project, namely to assign danger-level scores to police departments in the United States.
One specific metric I'm developing results from ...
4
votes
1
answer
175
views
A function failes and a message appears only on Raspbery Pi OS
I met a message such that,
Get::noopen: Cannot open /home/pi/.Mathematica/Paclets/Repository/Interpreter-1.3.140.0/Kernel/32Bit/Interpreter.mx
when I call the '...
2
votes
0
answers
73
views
Left-Right distinction of navicular inInterpreter["AnatomicalStructure"] function
I am playing with bone structure with Interpreter["AnatomicalStructure"] function. I noticed left-right distinction of navicular, one of the tarsal bones at the base of the foot, was not ...
1
vote
0
answers
99
views
Why is this Interpreter Restriction failing?
Why is the following interpreter restriction on City failing?
...
2
votes
2
answers
156
views
FormPage does not evaluate arbitrary expression
Why a FormPage that simply evaluates an input expression
FormPage[{"e" -> "Expression"}, #e &]
does not evaluate ...
5
votes
1
answer
240
views
Making an Email Address Validator
I wanted to make a simple email address validator using StringMatchQ. This was my first attempt:
...
2
votes
0
answers
111
views
GeoRegionValuePlot optimization
I have the following piece of code that plots a colormap by zipcode.
Zips is an array of zip codes (All in the US mainland) and testscore is just some made up data for testing purposes.
The list of ...
11
votes
1
answer
235
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
1
answer
129
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 ...