|
Posted: Jun 19, 2016 |
[ # 196 ]
|
|
Moderator
Total posts: 2372
Joined: Jan 12, 2010
|
|
|
|
|
|
Posted: Jun 19, 2016 |
[ # 197 ]
|
|
Senior member
Total posts: 179
Joined: Feb 11, 2015
|
thanks, Bruce,
by the way
when using the reverse matching…
(_[de en]) _10 = _0 refine()
a: (@_10- !~hablar)
won’t match if there is “~hablar” anywhere before _10
but
a: (@_10- !!~hablar)
will do the same,
I’m looking for a way to say… don’t match rule if it has “~hablar” adjacent before @_10, so sentence could still have “~hablar” provided that is previously next to “@_10” like…
“te gusta hablar de carros, soy de Canada”
thx advanced.
|
|
|
|
|
Posted: Jun 20, 2016 |
[ # 198 ]
|
|
Senior member
Total posts: 179
Joined: Feb 11, 2015
|
in fact, this…
(_[de en]) _10 = _0 refine()
a: (@_10- !!~hablar)
will match if user says…
“hablar de todo”
shouldn’t it avoid matching “de” if it is precede with “hablar”???
Thanks Advanced.
|
|
|
|
|
Posted: Jun 24, 2016 |
[ # 199 ]
|
|
Senior member
Total posts: 179
Joined: Feb 11, 2015
|
Hi,
when I run CS 6.5, it shows something like this…
line 399 of mytopic.top: Word pattern only known in opposite case, what does it mean? I have try to solve it with no result.
Though the engine still runs and works, but I don’t if that message can mean troubles latter,
thanks advanced
|
|
|
|
|
Posted: Jun 24, 2016 |
[ # 200 ]
|
|
Moderator
Total posts: 2372
Joined: Jan 12, 2010
|
a pattern like this
u: ( We like rain)
has the word “We” required to match as upper case. But the vocabulary of CS shows “we” is a lowercase word only and so will NOT MATCH an incoming sentence “We like rain” because CS will convert We into lower case. That is, you should not write your patterns in the wrong case for words (pay no attention to the case of a word starting the sentence).
u: ( i like rain) is a bad pattern, because I is correctly uppercase, not lowercase
|
|
|
|
|
Posted: Jul 1, 2016 |
[ # 201 ]
|
|
Senior member
Total posts: 179
Joined: Feb 11, 2015
|
Hi Bruce,
thanks for support,
In my controlscript there is a…
$cs_response = #response_removespacebeforecomma
but actually Im getting spaces before comas in the output,
when I print to sentences, and the second one starts with “,” eg.
output1 = hola
output2 = , como estas
I get the result… “hola , como estas”
am I doing something wrong?
thanks advanced.
PD: how do I print happy faces? like… or =)
from the manual…
I have tried \:\) but then the engine doesn’t build up
I have tried “:)” but it prints the face with the quotes, how do I only print a literal parens or equal or colom or semicolom?? thanks advanced.
|
|
|
|
|
Posted: Jul 4, 2016 |
[ # 202 ]
|
|
Moderator
Total posts: 2372
Joined: Jan 12, 2010
|
1. cs_response applies to a particular output request. If you have multiple independent outputs (like from two different rules), it does not cross that boundary when it operates. You’d have to build up your own variable from the pieces, then print that.
2. To emit the characters of an emoticon, use active strings- ^” ” for example. Currently the first character of this active string, if a :, has meaning to CS internally, so you need a space before the colon. I will try to change this for next release.
|
|
|
|
|
Posted: Jul 4, 2016 |
[ # 203 ]
|
|
Moderator
Total posts: 2372
Joined: Jan 12, 2010
|
About your:
(_[de en]) _10 = _0 refine()
a: (@_10- !!~hablar)
My simple test seems to work fine in english… i have concept: ~hablar (big small)
and then rules:
u: (_[desk bin]) _10 = _0 refine()
a: (@_10- !~hablar) match1
a: (@_10- !!~hablar) match2
And if I type “i have a big desk” neither rule fires. If i type “i big have a desk” then match2 fires. And if I type “I have a desk” then match1 fires.
|
|
|
|
|
Posted: Jul 5, 2016 |
[ # 204 ]
|
|
Experienced member
Total posts: 39
Joined: May 16, 2016
|
Hello Eduardo Bedoya!
I have been following this topic and it have been so helpful for me. I’d like to know if you adopted, for the verbs conjugation, the creation of a table or you put all the conjugation forms into canonical.txt file?
If you adopted the table, how did you deal with the limited number of arguments that I think is 15, because there are verbs with more than it, correct?
Thank you so much!
Oberdan Alves
|
|
|
|
|
Posted: Jul 5, 2016 |
[ # 205 ]
|
|
Senior member
Total posts: 179
Joined: Feb 11, 2015
|
neither of both, I solved it by creating a spanish dict myself each verb with its 60 conjugations, and assignning them different definition bits so I can differenciate them, between past present future, etc, its been a tremendous endevour, but it works, where are you from?
|
|
|
|
|
Posted: Jul 5, 2016 |
[ # 206 ]
|
|
Senior member
Total posts: 179
Joined: Feb 11, 2015
|
Hi bruce,
I have checked on 6.5a
having the concept
concept: ~hablar (big small)
(_[de en]) _10 = _0 refine()
a: (@_10- !!~hablar)
and it will match
“big de” or “small de”
it should not match “big or small” inmediatly before [de en] eg. “big de” or “small de”
but it could perfectly match “big thing de” or “small thing de” because “big or small” are not inmediatly before [de en].
Do I need to check it out with last version???
PD: but please bruce, right now Im heavily concern about the TCP connection,
last time I tested chatscript in server mode was with CS version 6.3
Ive been developing the chatbot while upgrading CS, now Im in version 6.5a, but the bot in server mode doesn’t work anymore, it just doesn’t recognize any of the patterns, have any connection config changed since version 6.3? which manuals do you suggest? thanks advanced.
|
|
|
|
|
Posted: Jul 5, 2016 |
[ # 207 ]
|
|
Moderator
Total posts: 2372
Joined: Jan 12, 2010
|
no tcp protocols have changed. Are you linux server or windows server?
|
|
|
|
|
Posted: Jul 5, 2016 |
[ # 208 ]
|
|
Senior member
Total posts: 179
Joined: Feb 11, 2015
|
windows
CSserv 127.0.0.1
CShost 127.0.0.1
CSport 1024
|
|
|
|
|
Posted: Jul 5, 2016 |
[ # 209 ]
|
|
Moderator
Total posts: 2372
Joined: Jan 12, 2010
|
So take the current CS build from sourceforge, with its english dict and harry bot, and
run the localserver batch file from Server Batch Files, and then double click on localclient batch file and try to talk to harry. That should work and is a basic test for server functioning.
|
|
|
|
|
Posted: Jul 5, 2016 |
[ # 210 ]
|
|
Senior member
Total posts: 179
Joined: Feb 11, 2015
|
Hi Bruce
I run the localserver batch file, and then localclient batch file, and talked with my own “lucy” bot, it worked.
but when I run CS on server mode, built the “lucy” bot, and send the user messages via TCP socket, it receive them, but it just doesn’t match any of the rules, Im sending “hola” and then I got “lucy”‘s controlscript output sending back a message that it usually displays when there wasn’t any rule match at all. why is that?
|
|
|
|