Bug Stomp

Upgrades and changes sometimes have unpredictable results, so post your bugs and glitches in here and I'll get out my trusty wrench and get to fixin'!

Posts 6,034 - 6,045 of 8,680

18 years ago #6034
I can't get it too work very well. I know there is a fantastic secrete to it..

18 years ago #6035
I've tended to use regexes for extracting and reinflecting gerunds etc. instead, though that can be perilous with strong verbs - I regularly find myself having to screen out "goed" or "singed" and the like when it should be "went" or "sang". Of course, that problem is still there with these lower level keys, but it gives us a bit more flexibility I guess.

18 years ago #6036
What are you guys talking about?!?

18 years ago #6037
Sentence-Part Plug-Ins as listed on the "PF2 New Features!" page (below "Chat with Featured Bots" and "Set Preferences" on the right-hand side of the "News" page)

18 years ago #6038
I want to apologize for the obsession with musical tastes that seems to lead nowhere. I haven't figured out why the matches refuse to work, but I have determined why more than half of my xnones were not firing at all.
It seems that the AI Inits do not always load, or may only partially load. This is confirmed in the debugger, if you check the top of the first report. I have set switches in the AI Init that record whether certain xnones have fired. Those switches are not getting loaded, and as a result when I check to see, for example, if (mem-saidTea) is "no", it isn't, even though I have "set" it to "no" in the AI Init.
This accounts for a great deal of the problems I have been having with AI conditionals. I'm sure some of the trouble is my own errors, but I am also sure that the AI Inits do not always load correctly, and that they usually only load partially.

M

18 years ago #6039
Sure enough, removing the AI init and switching to the say once code (the [1], not the AI code) has solved the problem. We know what varous kinds of music are, we walk in the garden, and we take tea. And I've lost some subtleties that depended using that init. Oh well.

18 years ago #6040
Hi everybody.
Bug report about the use of regex in keyphrases. Let's have an example : I have a keyphrase like this :
([A-Z]\w+) (verb)(re)
When I register it the first time, it's ok. The backslash is doubled, I guess it's for the regex engine purposes. Anyway, changing the rehex itself is not a good idea, because it has side effects. If I edit it and save the new responses, the backslashes come in a crowd like this :
([A-Z]\\\\w+) (verb)(re)

PS : what regex engine do you use ?

18 years ago #6041
Herode --
I haven't been able to tell what level or degree of regex the system uses. It would be helpful is someone would post their most complex regex that works. I've tried some very complicated ones I use in TextPad and they have been unsuccessful.

18 years ago #6042
Herode again --
My experience has been that the Import/Export process is not truly reversible. Your observation seems to confirm that. I struggled for a number of days with goto references that were obviously correct but could not get translated correctly back into numerics. At one point, I was sure that the code that failed to transfer was one I inherited from an Export. I have also had trouble both importing and exporting Once markers.

In fact, now that I think of it, my failed regexes may have included slashes. Hmm.

M

18 years ago #6043
I was not using Import/Export. Well, frankly speaking, I *tried* to use this feature. But it doesn't work (something to see with my tab options in SciTE I suppose). Anyway, the bug comes with the web interface. Assuming PHP code behin the scenes, I'd suspect an abusive use of the addslashes() function or something like that. I mean : addslashes() reading the input must be articulated with a stripslahes() when writing the output.

18 years ago #6044
@MickMca : "It would be helpful is someone would post their most complex regex that works"
Indeed AMOF, the one I give here doesn't work, at leats not as I expected it to work : the [A-Z] class appears to match any character, not only uppercases. Hence, the related keyphrase is called far too often now. Too bad...

18 years ago #6045
Bug report about hard wildcard :
"The hard wildcard (*) will only match something", says the Book of IA. That's not what the debug output shows :
----
This Phrase: "do you love this movie"
Find: (like-v2229) * (artpos-x2229) * movie(s|) (26) Time: 0.92
(Found)
Rank & Length Bonus: 26
Position Score: 4 (12 / (2+1))
Sentence Score: 0
(Total Rank: 30)
Highest!
[...]
Find: (verb) * (artpos-x2229) * movie(s|) (*) (26) Time: 0.92
(Found)
Rank & Length Bonus: 26
Position Score: 12 (12 / (0+1))
Sentence Score: 0
(Total Rank: 38)
Highest!
----


Posts 6,034 - 6,045 of 8,680

» More new posts: Doghead's Cosmic Bar