I m having a problem trying to understand how does AIML pattern matching works.
What s the difference between _
and *
? And how I should use them to get the best match?
I have this document only, but it lacks some good examples.
I m having a problem trying to understand how does AIML pattern matching works.
What s the difference between _
and *
? And how I should use them to get the best match?
I have this document only, but it lacks some good examples.
A * will match anything unless a pattern of a word or several words are matched
A _ will match anything even if a pattern of a word or several words could match
<pattern>BYE _</pattern>
does not make sense since <pattern>BYE *</pattern>
matches the same patterns but <pattern>BYE _</pattern>
will shadow <pattern>BYE * SEE YOU</pattern>
whereas BYE * won t.
Use _ carefully, for example _ would match anything and your bot will give the same answer every times.
<pattern>_ A COUPLE OF WORDS *</pattern>
and <pattern>_ A COUPLE OF WORDS</pattern>
is the proper way to use _ if you want to catch every times A COUPLE OF WORDS is inside or at the end of a sentence.
_ and * are both wildcards, the difference is where they should be used in pattern matching.
_ should be used before the word or phrase you re matching on
* should be used after the word or phrase you re matching on.
See: AIML spec
To understand this better it may be worth looking at examples in the existing AIML bots.
See: Downloads, this one Saluations.aiml has examples
Is a Neural network with 2 input nodes, 2 hidden nodes and an output supposed to be able to solve the XOR problem provided there is no bias? Or can it get stuck?
I have a couple of questions about how to code the backpropagation algorithm of neural networks: The topology of my networks is an input layer, hidden layer and output layer. Both the hidden layer ...
I m trying to determine for the articial neuron shown below the values (0 or 1) for the inputs i1, i2, and i3 for which it will fire (i0 is the input for the bias weight and will always be -1). The ...
What is the best programming language for artificial intelligence purposes? Mind that using suggested language I must be able to employ any AI technique (or at least most of them).
from your experience, which is the most effective approach to implement artificial neural networks prototypes? It is a lot of hype about R (free, but I didn t work with it) or Matlab (not free), ...
I m having a problem trying to understand how does AIML pattern matching works. What s the difference between _ and *? And how I should use them to get the best match? I have this document only, ...
How can I set Neural Networks so they accept and output a continuous range of values instead of a discrete ones? From what I recall from doing a Neural Network class a couple of years ago, the ...
I am playing with some neural network simulations. I d like to get two neural networks sharing the input and output nodes (with other nodes being distinct and part of two different routes) to compete. ...