# How do you run Natural Language Processing on a variable?

Posted 8 years ago
2245 Views
|
2 Replies
|
0 Total Likes
|
 I have stored an image of the Sagrada Familia in my variable "x". Now I want to use the "=" sign to run some experiments with this image (double its length, see related buildings, change the opacity/color of it). How do I call the NLP on X?
2 Replies
Sort By:
Posted 8 years ago
 You can try things like:
Posted 8 years ago
 Let's take a simple example: x = 1 [= x plus 1] We've set x equal to 1 and then we've asked it to interpret the phrase "x plus 1". I've used the notation "[= x plus 1]" to mean "ask for a natural language interpretation of x plus 1". If you evaluate this, you'll see that it returns "x + 1" and not "2". Once we evaluate "x + 1" though, it will return "2". The value of x is not part of the natural language processing. Instead, the natural langauge processing returns and expression with "x" in it and that value of "x" is substituted locally with the value of "1". The distinction is important to understand if you are using variables like this.The NLP functionality doesn't seem to handle much image processing at this time. You might try looking at some examples of this with Wolfram|Alpha.