Difference between revisions of "Adding words to the NLP"

From XStoryPlayer Wiki
Jump to: navigation, search
Line 13: Line 13:
 
She does not react on these sentences but the brain results will be traced to the 'trace.txt' file because we are running in debug mode.<br>
 
She does not react on these sentences but the brain results will be traced to the 'trace.txt' file because we are running in debug mode.<br>
 
Start the abducted story and when the alien girl is in sight speak the following sentences:
 
Start the abducted story and when the alien girl is in sight speak the following sentences:
* "You have nice spots"
+
* "You have lovely spots"
 
* "I like your spots"
 
* "I like your spots"
 
* "Your spots look very nice"
 
* "Your spots look very nice"
 
</li>
 
</li>
 
</ol>
 
</ol>

Revision as of 13:35, 20 January 2015

Now the girl only responds to you by saying you should be quiet. We want the girl to open the cell when you give her a compliment.
A good fitting compliment would be "You have nice spots".
In this tutorial we will add some extra talking to the story. We will also add a word to the NLP.

  1. Open the '/ai/nlp/nlp_object.txt' file.
    Add the following code at the end of the #object_body values:
    #object_body = <spot>  : spot
    #object_body = <spots> : spot
    This will make spots to be allowed in sentences that describe the body.
  2. No lets see what happens when you talk to the alien girl using the new words.
    She does not react on these sentences but the brain results will be traced to the 'trace.txt' file because we are running in debug mode.
    Start the abducted story and when the alien girl is in sight speak the following sentences:
    • "You have lovely spots"
    • "I like your spots"
    • "Your spots look very nice"