Difference between revisions of "SCI Parser Programmer's Reference/Said Specs"
(2 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
[[SCI Parser Programmer's Reference/User Parse Trees|2]] | | [[SCI Parser Programmer's Reference/User Parse Trees|2]] | | ||
[[SCI Parser Programmer's Reference/Said Specs|3]] | | [[SCI Parser Programmer's Reference/Said Specs|3]] | | ||
− | [[SCI Parser Programmer's Reference/Syntax|4]] | | + | [[SCI Parser Programmer's Reference/Said Syntax|4]] | |
− | [[SCI Parser Programmer's Reference/Spec Trees|5]] | | + | [[SCI Parser Programmer's Reference/Said Spec Trees|5]] | |
[[SCI Parser Programmer's Reference/Tree Matching|6]] | | [[SCI Parser Programmer's Reference/Tree Matching|6]] | | ||
[[SCI Parser Programmer's Reference/Examples|7]] | | [[SCI Parser Programmer's Reference/Examples|7]] | | ||
Line 19: | Line 19: | ||
| | ||
− | == Said-specs == | + | ==<br /> Said-specs == |
The previous section briefly describes the upper branch of the parsing system. The lower branch allows the SCI coder to specify what sentences he wants to recognize using "Said" statements. The above sentence ("take the gold from the dwarf") can be recognized by: | The previous section briefly describes the upper branch of the parsing system. The lower branch allows the SCI coder to specify what sentences he wants to recognize using "Said" statements. The above sentence ("take the gold from the dwarf") can be recognized by: | ||
− | === (Said 'take/gold/dwarf<from') === | + | ===<br /> (Said 'take/gold/dwarf<from') === |
<blockquote>which would return TRUE if the user typed the phrase in. Let's dissect this spec:</blockquote> | <blockquote>which would return TRUE if the user typed the phrase in. Let's dissect this spec:</blockquote> | ||
− | === take: === | + | ===<br /> take: === |
<blockquote>the first of three sections separated by slashes, it is the verb in the verb phrase.</blockquote> | <blockquote>the first of three sections separated by slashes, it is the verb in the verb phrase.</blockquote> | ||
− | === /gold: === | + | ===<br /> /gold: === |
<blockquote>the slash signals the beginning of the direct object, which is a noun phrase with root "gold"</blockquote> | <blockquote>the slash signals the beginning of the direct object, which is a noun phrase with root "gold"</blockquote> | ||
− | === /dwarf: === | + | ===<br /> /dwarf: === |
<blockquote>the slash signals the beginning of the indirect object, which is an Associated Phrase. The root is "dwarf"</blockquote> | <blockquote>the slash signals the beginning of the indirect object, which is an Associated Phrase. The root is "dwarf"</blockquote> | ||
− | === <from: === | + | ===<br /> <from: === |
<blockquote>the "<" means "modified by". In this case the preposition "from" modifies the root of the AP</blockquote> | <blockquote>the "<" means "modified by". In this case the preposition "from" modifies the root of the AP</blockquote> | ||
Line 55: | Line 55: | ||
<span style="float: left">[[SCI Parser Programmer's Reference/User Parse Trees|< Previous: User Parse Trees]]</span> | <span style="float: left">[[SCI Parser Programmer's Reference/User Parse Trees|< Previous: User Parse Trees]]</span> | ||
− | <span style="float: right">[[SCI Parser Programmer's Reference/Syntax|Next: Syntax >]]</span> | + | <span style="float: right">[[SCI Parser Programmer's Reference/Said Syntax|Next: Said Syntax >]]</span> |
| |
Latest revision as of 02:27, 22 December 2015
Said-specs
The previous section briefly describes the upper branch of the parsing system. The lower branch allows the SCI coder to specify what sentences he wants to recognize using "Said" statements. The above sentence ("take the gold from the dwarf") can be recognized by:
(Said 'take/gold/dwarf<from')
which would return TRUE if the user typed the phrase in. Let's dissect this spec:
take:
the first of three sections separated by slashes, it is the verb in the verb phrase.
/gold:
the slash signals the beginning of the direct object, which is a noun phrase with root "gold"
/dwarf:
the slash signals the beginning of the indirect object, which is an Associated Phrase. The root is "dwarf"
<from:
the "<" means "modified by". In this case the preposition "from" modifies the root of the AP
- Notes
< Previous: User Parse Trees Next: Said Syntax >