Difference between revisions of "SCI Parser Programmer's Reference/Said Specs"

From SCI Wiki
Jump to navigationJump to search
(Created page with "Official SCI Documentation<br /> <div align="center"> Chapter: 1 | SCI Parser Programmer's Reference/User Parse Tre...")
 
Line 13: Line 13:
 
</div><br />
 
</div><br />
  
<div align="center"><span style="font-size: 22pt">Said Specs</span><br />
+
<div align="center"><span style="font-size: 22pt">Said-Specs</span><br />
 
''Author: [[Pablo Ghenis]]''<br />
 
''Author: [[Pablo Ghenis]]''<br />
 
''Date: 21 July 1988 9:56:56 am''</div>
 
''Date: 21 July 1988 9:56:56 am''</div>
Line 19: Line 19:
 
&nbsp;
 
&nbsp;
  
-- content here --
+
== 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') ===
 +
 
 +
<blockquote>which would return TRUE if the user typed the phrase in. Let's dissect this spec:</blockquote>
 +
 
 +
=== take: ===
 +
 
 +
<blockquote>the first of three sections separated by slashes, it is the verb in the verb phrase.</blockquote>
 +
 
 +
=== /gold: ===
 +
 
 +
<blockquote>the slash signals the beginning of the direct object, which is a noun phrase with root "gold"</blockquote>
 +
 
 +
=== /dwarf: ===
 +
 
 +
<blockquote>the slash signals the beginning of the indirect object, which is an Associated Phrase. The root is "dwarf"</blockquote>
 +
 
 +
=== <from: ===
 +
 
 +
<blockquote>the "<" means "modified by". In this case the preposition "from" modifies the root of the AP</blockquote>
  
 
&nbsp;
 
&nbsp;

Revision as of 00:45, 22 December 2015

Official SCI Documentation

Chapter: 1 | 2 | 3 | 4 | 5 | 6 | 7 | Index


Said-Specs

Author: Pablo Ghenis

Date: 21 July 1988 9:56:56 am

 

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


 

Table of Contents

 

< Previous: User Parse Trees Next: Syntax >