Phrase dictionary table keeps phrase dictionary.
First concept may be either word or phrase.
Second concept may be either word or phrase.
Example #1
“Black box” phrase is represented in phrase dictionary table by first word “black” and second word “box”.
Dictionary table for two-word phrases (Phrase2 table):
Field |
Description |
Type |
Key field = ConceptId of concept representing this phrase in the main memory |
Unsigned Int (4 bytes) |
|
WordId1 |
ConceptId of the first word in the phrase |
Unsigned Int (4 bytes) |
WordId2 |
ConceptId of the second word in the phrase |
Unsigned Int (4 bytes) |
Dictionary table for three-word phrases (Phrase3 table):
Field |
Description |
Type |
PhraseId |
Key field = ConceptId of concept representing this phrase in the main memory |
Unsigned Int (4 bytes) |
WordId1 |
ConceptId of the first word in the phrase |
Unsigned Int (4 bytes) |
WordId2 |
ConceptId of the second word in the phrase |
Unsigned Int (4 bytes) |
WordId3 |
ConceptId of the second word in the phrase |
Unsigned Int (4 bytes) |
Let imagine that strong AI reads phrase: “Let’s
play!”.
This phrase will be represented as list of words: “Let’s”, “play”, “!”.
Let assume that words “play” and “!” are already in Word Dictionary table
ConceptId |
Word |
582 |
Play |
377 |
! |
Let assume that there are 2995 concepts already exist in the Concept table.
1 row will be added to the Word dictionary table:
WordDictionary table:
ConceptId |
Word |
2996 |
Let’s |
This concept will be added into the Main Memory: New word “Let’s” with ConceptId = 2996.
Because now there are 2996 concepts in the Main Memory, the phrase will be saved with ID = 2997:
Phrase3 table :
PhraseId |
WordId1 |
WordId2 |
WordId3 |
2997 |
2996 |
582 |
377 |
This phrase (“Let’s play!”) will be added into the Main Memory with ConceptId = 2997
Result concept table might look like this:
Concept table:
ConceptId |
Strength |
Type |
|
….. |
|||
377 |
155 |
26 |
Word |
….. |
|||
582 |
76 |
33 |
Word |
….. |
|||
2996 |
10 |
10 |
Word |
2997 |
30 |
30 |
Phrase3 |
There are two more phases in the text “Let’s play!”:
1) “Let’s play”
2) “play !”.
They also should be added into Phrase2 dictionary table.