/^^^^^^^^^\ EnParser Determines Parts Of Speech /^^^^^^^^^\ / EYE \ MINDCORE _____ / EAR \ / \ CONCEPTS /New- \ / \ | _______ | | | | _____ (Concept)-|-------------\ | | /old \ | | | | /Old- \ \_____/ | Audition | | | / image \---|-----+ | (Concept)------|---|----------\ | | | \ recog / | | | | \_____/-------|---|-------\ | | | | \_______/ | a| | | |________V | c | | | | | | b|C| | / EnParser \ | a | | | | | visual | s|O|f| \__________/ | t | | | | | | t|N|i| |noun? | s-/ | | | | memory | r|C|b| |verb? | | | | | | a|E|e| |adj.? | e | | | | channel | c|P|r| |adverb? | a | | | | | t|T|s| |prep.? | t-----/ | | | _______ | | | | |conj.? | | | | /new \ | |_|_| ______V____ | f | | | / percept \ | / \ / \ | i | | | \ engram /---|--\ Psi /-----( InStantiate ) | s | | | \_______/ | \___/ \___________/ | h-------/ |
EnParser serves the purpose of not only identifying a part of speech such as a noun, preposition or verb, but also of comprehending the part of speech in context by helping to assign associative tags among concepts in the Psy conceptual array. Thus EnParser and its Russian counterpart RuParser serve the purpose of Natural Language Understanding (NLU).
To parse and comprehend an indirect object, EnParser tentatively fills the time-of-indirect-object $tio flag with the input-time of the first noun being input after a verb. The $tio flag is set only once by requiring that it be at zero for it to be set. Simultaneously, the time-of-direct-object flag $tdo is filled with the same value as the $tio flag for an indirect object, because it is not yet known whether one noun or two nouns are being entered subsequent to the input of a transitive verb. If and when a second noun comes in, the value for the time-of-direct-object $tdo flag, originally filled with the same value as the indirect-object $tio flag, is replaced or overwritten with the new time of the second post-verb noun in the input stream.
If only one noun comes in after the verb, the identifier of the direct object is set only once. If two post-verb nouns come in, the first noun becomes the indirect object and the second noun becomes the direct object.
To debug the function of assigning indirect and direct objects, the AI Mind Maintainer enters a typical sentence such as "I give the boy a robot" that contains both an indirect object and a direct object, and presses Escape to halt the AI after the input. Then the Maintainer examines the display of the conceptual array to see if $iob and $seq have been properly assigned. The AI coder may also insert diagnostic "print" messages into InStantiate() and EnArticle() so as to observe the process of assigning a tag during the input and comprehension of a sentence.
Return to top; or to