FREQUPDATE {MoLE} | R Documentation |
Update usage numbers
Description
Update frequency numbers in lexicon and usage history.
Usage
FREQUPDATE(agentID, meaning, success)
Arguments
agentID |
pointer to agent whose numbers are to be updated |
meaning |
Meaning (proposition or interpretation) on the basis of whose constituents the numbers in the usage history and lexicon have to be updated. |
success |
Logical for success of conversational turn (as number of successful uses are kept track of) |
Details
Difference is made between local and third-person pronouns. +1 at the end for log operation and to prevent division by zero
Value
No actual output: updated usage history and lexicon
Author(s)
Sander Lestrade
See Also
TURN
Examples
FOUND()
situation=SITUATION(1)
proposition=PROPOSITION(1, situation)
population[[1]]$nouns[population[[1]]$nouns$ID%in%c(proposition$external$ID),]
population[[1]]$wordOrder
FREQUPDATE(1, proposition, success=1)
population[[1]]$nouns[population[[1]]$nouns$ID%in%c(proposition$external$ID),]
population[[1]]$wordOrder
[Package MoLE version 1.0.1 Index]