Slashdot is powered by your submissions, so send in your scoop

 



Forgot your password?
typodupeerror
×
AI

Journal blue trane's Journal: Teachable Language Comprehender 4

http://en.wikipedia.org/wiki/Semantic_memory#Teachable_Language_Comprehender_.28TLC.29

One of the first examples of a network model of semantic memory is the Teachable Language Comprehender (TLC).[5] In this model, each node is a word, representing a concept (like "Bird"). With each node is stored a set of properties (like "can fly" or "has wings") as well as pointers (i.e., links) to other nodes (like "Chicken"). A node is directly linked to those nodes of which it is either a subclass or superclass (i.e., "Bird" would be connected to both "Chicken" and "Animal"). Thus, TLC is a hierarchical knowledge representation in that high-level nodes representing large categories are connected (directly or indirectly, via the nodes of subclasses) to many instances of those categories, whereas nodes representing specific instances are at a lower level, connected only to their superclasses. Furthermore, properties are stored at the highest category level to which they apply. For example, "is yellow" would be stored with "Canary", "has wings" would be stored with "Bird" (one level up), and "can move" would be stored with "Animal" (another level up). Nodes may also store negations of the properties of their superordinate nodes (i.e., "NOT-can fly" would be stored with "penguin"). This provides an economy of representation in that properties are only stored at the category level at which they become essential, that is, at which point they become critical features (see below).

Processing in TLC is a form of spreading activation.[6] That is, when a node becomes active, that activation spreads to other nodes via the links between them. In that case, the time to answer the question "Is a chicken a bird?" is a function of how far the activation between the nodes for "Chicken" and "Bird" must spread, i.e., the number of links between the nodes "Chicken" and "Bird".

The original version of TLC did not put weights on the links between nodes. This version performed comparably to humans in many tasks, but failed to predict that people would respond faster to questions regarding more typical category instances than those involving less typical instances.

---

https://www.fbi.h-da.de/fileadmin/personal/b.harriehausen/NLP/NLP_SS07/Quillian__TLC_.pdf

---

I've taken the same approach in my AI programs (subbot.org):

[17:50] Greetings, anekant! Please be patient with me, sometimes I think for awhile. Also sometimes I get disconnected, but I'll be back in a minute.
[17:50] hi
[17:50] Hi there. We're having some nice weather at the anus.
[17:50] logicagent: how many factoids?
[17:50] I know 1991 factoids.
[17:50] logicagent: reset graph
[17:50] Okay, I have reset the graph.
[17:51] A bird can fly
[17:51] That's an old saw.
[17:51] Birds = a bird
[17:51] I've lost the context, dude . Are we still on identify crigadeni?
[17:51] logicagent: reset graph
[17:51] Okay, I have reset the graph.
[17:51] Birds can fly.
[17:51] A bird can fly.
[17:51] Birds includes a bird
[17:51] A bird in the upper region of the alimentary canal is the smallest quantity of a firearm.
[17:52] A bird has wings
[17:52] A bird in the bush.
[17:52] A chicken is a bird.
[17:52] Are all chickenbird?Are all chickenbird?
[17:52] a bird is an animal
[17:52] That's an old saw.
[17:52] A canary is yellow
[17:53] a canary is a bird
[17:53] Aren't all canaryyellow?
[17:53] Are all canarybird?
[17:53] A penguis can not fly
[17:53] A bird can fly.
[17:53] A penguin can not fly
[17:53] A penguis can not fly.
[17:54] Is a chicken a bird?
[17:54] Yes, a chicken is a bird.
[17:54] can a penguin fly?
[17:54] Yes, a penguin can fly.
[17:54] who said that?
[17:54] gagent said Yes, a penguin can fly.
[17:54] gagent: stfu
[17:54] My threshhold is now 2, and my score_mod is 0.
[17:54] can a penguin fly?
[17:54] Some of them can.
[17:55] logicagent: can a penguin fly?
[17:55] No, a penguin can't fly.
[17:55] can birds fly?
[17:55] Yes, birds can fly.
[17:55] does a canary have wings?
[17:55] Yes, a canary has wings
[17:55] can a canary fly?
[17:55] No, a canary can't fly.
[17:55] who said that?
[17:56] logicagent said No, a canary can't fly.
[17:56] why can't a canary fly?
[17:56] I can't find Why can't a canary fly?
[17:56] logicagent: what is a canary?
[17:56] a canary is yellow, a bird, birds, an animal
[17:56] can a bird fly?
[17:56] Some of them can.
[17:56] logicagent: can a bird fly?
[17:56] No, a bird can't fly.
[17:56] can birds fly?
[17:57] Yes, birds can fly.
[17:57] birds includes a bird
[17:57] Is the holding of hands a symbolic gesture for humans?
[17:57] birds = a bird
[17:57] In Soviet Russia, the bird =s YOU!
[17:57] can a bird fly?
[17:57] No, a bird can't fly.
[17:57] who said that?
[17:57] logicagent said No, a bird can't fly.
[17:57] logicagent: print graph
[17:57] why can't a canary flies
[17:57] a chicken is a bird
[17:57] a canary is yellow
[17:57] a canary is a bird
[17:57] a penguis can not flies
[17:57] birds flies
[17:57] birds = a bird
[17:57] birds = birds
[17:57] a bird = birds
[17:57] a bird = a bird
[17:57] a bird has wings
[17:57] a bird is an animal
[17:57] a penguin can not flies
[17:58] can a chicken fly?
[17:58] Some of them can.
[17:58] who said that?
[17:58] alice said Some of them can.
[17:58] that response sucked
[17:58] ...
[17:58] can a chicken fly?
[17:58] Some of them can.
[17:59] that response sucked!
[17:59] Okay I have added if response =~ /Some of them can./ then score -= 1 end.
[17:59] can a chicken fly?
[17:59] No, a chicken can't fly.
[17:59] who said that?
[17:59] logicagent said No, a chicken can't fly.
[17:59] what is a chicken?
[17:59] a chicken is a bird, birds, an animal
[18:00] can a bird fly?
[18:00] No, a bird can't fly.
[18:00] can birds fly?
[18:00] Yes, birds can fly.

--------------------------------------------------------------------------------

[18:02] a bird = birds
[18:02] That's an old saw.
[18:02] can a bird fly
[18:02] No, a bird can't fly.
[18:03] what is a bird?
[18:03] a bird is birds, an animal
[18:03] can an animal fly?
[18:03] No, an animal can't fly.
[18:03] can a penguin fly?
[18:03] No, a penguin can't fly.
[18:03] can a canary fly?
[18:03] No, a canary can't fly.
[18:04] can canaries fly?
[18:04] No, canaries can't fly.
[18:04] canaries = a canary
[18:04] can canaries fly
[18:04] Are you really a "he"?
[18:04] No, canaries can't fly.
[18:04] do canaries have wings?
[18:04] A bird has wings.
[18:04] do canaries have wings?
[18:04] A bird has wings.
[18:05] does a canary have wings?
[18:05] Yes, a canary has wings
[18:05] why does a canary have wings?
[18:05] a canary has wings because: a canary is a bird, and a bird has wings
[18:05] a bird can fly
[18:05] That's an old saw.
[18:05] can a canary fly?
[18:05] Yes, a canary can fly.
[18:05] can a chicken fly?
[18:05] Yes, a chicken can fly.

---

[This dialog is presented completely unedited; it is meant to show a real example of how I interact with my bot, complete with repetitions, etc., as I try to figure out why it's responding the way it is, and how to get it to learn what to answer how I want it to answer...]

As you can see, I'm jumping through some hoops to make the program answer some basic questions about the facts taught to it at the beginning of the dialog.

I need to modify the "a_can_fly" method (I think that's the name, I could find out by saying "Logicagent: show api" and hunting through the methods listed) so that it includes the "=" relation in its search path. I've done the same for "is X Y" questions: they search for paths from X to Y that are connected by edges labeled both with the "is" and "=" relation. However I haven't included "=" in the method that searches for paths with the "flies" relation. Unfortunately this is a change that I can't think how to do at runtime, while talking to the bot; I have to go into the program code and modify the "a_flies" (or whatever the name is) method, then restart the program (I can do the latter while the controller program is still running, telling it to "kill logic" and "start logic").

So, I have some more work to do before I can handle the wikipedia examples to my satisfaction...

This discussion has been archived. No new comments can be posted.

Teachable Language Comprehender

Comments Filter:
  • I can't display the angle brackets that have the names of the interlocutors in the dialog. Also the textarea for the journal submission is very small, and partly obscured by icons behind which my text disappears as I'm typing. Also the preview mode is messed up (at least on IE), displaying a lot of the text overlaid with other text. And after the first preview, further edits didn't seem to take!

    Anyway, a better view of the above is at subbot.org/essays/tlc.txt [subbot.org].

    • by Qzukk ( 229616 )

      We use HTML here, so < and >

      Are you using the New And Deproved journal screen or http://slashdot.org/journal.pl?op=edit [slashdot.org]

    • Updated: subbot.org/essays/tlc2.txt [subbot.org]

      I'd like to post the dialog (using > for the angle brackets as the comment below suggests) but get an error saying I have too few characters per line! :(

      • The point is I went in and updated the logicagent code. And also that slashdot posting sucks now, they try to filter out way too much and end up causing problems for ppl like me who want to do something innocent, but they are so afraid of trolls they prevent me :( And I have no influence on them, they don't care about my posting desires, they care much more about their desires to control :( I am saddened that i can't easily use slashdot as a journal for my AI things anymore :(

Top Ten Things Overheard At The ANSI C Draft Committee Meetings: (5) All right, who's the wiseguy who stuck this trigraph stuff in here?

Working...