dupa

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - ll420ll

Pages: [1]
1
I want a  braintopic table to contain a whole list of attributes, but be able to edit them as conversations progress.
Is there a way to either delete, or update lines of brain tables using a hal commands or coding?
I know theres a way to pull data from brain tables into an temp array, but how could I possibly change or update that data and have hal also update that data in the braintable.
Any help would be greatly appreciated.

Is this type of function used to edit tables? or just temporary arrays?
HalBrain.RunQuery "UPDATE " & lonelyTableName & " SET topic = " & loPatience & " WHERE searchString = " & """" & patParam & """", tempQuery


This how I was storing variables that I want to save but change on the fly.  But I want to be able to save and update this data in a braintable.
    Rem PLUGIN: CUSTOMMEM

    attribute2 = HalBrain.ExtractVar(CustomMem, "attribute2")

    'PROCESS: PRESERVE ALL VARIABLES
    CustomMem = HalBrain.EncodeVar(attribute2, "attribute2")

2
General Discussion / Parse a sentence
« on: May 30, 2010, 07:56:29 pm »
http://www.link.cs.cmu.edu/link/index.html

http://www.link.cs.cmu.edu/link/submit-sentence-4.html

Seems like you can DL the source. I bet Hal would benefit from this feature.

3
I'm working on on plug-in and I could uses a lil help.

I found this topic, but i am still having issues.
I think i should be able to save a variable using custommem
Like this...
CustomMem = HalBrain.EncodeVar(MyTable, "MyVariableName")
StoredVariables = HalBrain.ExtractVar(CustomMem, "MyVariableName")

I very new at this, but im starting to figure some things out.
If i can make this work, I will have one neat plugin to share later.
Thanks for the help!!!

4
Ultra Hal Assistant File Sharing Area / Question:Answer plugin???
« on: March 22, 2009, 07:00:12 pm »
Question:Answer plugin???

When user asks Hal a question it is put into a shared question table to ask later.
I notice it doesn't get paired with the correct answer.
Is there a way a plugin could store the answer with the question, and tell Hal not to ask the question later.
And to reverse pronouns to ask similar question later.  You:I  I:You  She/He:I  She/He:You

Also...
If user asks question and Hal responds with the wrong answer.
Using statements like, "wrong" "incorrect" or "that doesn't make sense" deletes the bad answer from Q:A table.

Also...  could a second (bad answer, does not equal, incorrect statement/pair) table be created.

An example.


User: Do you play baseball?
Hal: Alex Rodriguez plays baseball.
User: That's "wrong".

<Hal> If hal does not have that question in Q:A table it stores question to ask user later.
<Hal> does not store that bad Answer in Q:A pair.
<Hal> if Q:A  Q: Do I play baseball?  A: Alex Rodriguez plays baseball. is stored from previous. The "wrong" Answer is removed from Q:A table.
<Hal> makes a 2nd table.  Q: Do you play baseball?  "does not equal" A: Alex Rodriguez plays baseball.
<Hal> Hal asks "Do I play baseball?"
<Hal> Stores correct answer to existing Question or stores new Q:A pair
<Hal> Knows not to ask "Do I play baseball?" because it has answer in Q:A table.
<Hal> Reverses "you" "I" and stores it in Q:A table to ask that question later. Does (user) play baseball?


Is there a plugin like this already?
 


And is Hal able to create and store "does not equal" tables for both questions and statements.

User: I like apples.
Hal: That's like comparing apple to oranges.
User: That's "wrong" or "that doesn't make sense"
Hal: "How about" <Tries to answer again>
Hal: "Does this work" <Tries to answer again>
<Hal> stores "I like apples" does not equal "That's like comparing apple to oranges"

Seems currently there is no way to tell Hal it is wrong, and stop same errors being made in the future.

Pages: [1]