View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000113IRCBotcommandepublic2016-04-07 17:322016-07-13 11:54
Assigned Toasohier 
PlatformOSOS Version
Summary0000113: [markov] Adaptative context
DescriptionAdd a adaptative context length, eg:

For each input sentence:
  Looks for last sentence's timestamp
  While context is not empty and delay >= x:
    Prune the first sentence of the context
    Decrease delay by x
  Save the sentence's timestamp

  Set context used length to context length
  While context used length > 1:
    Set sentence used length to sentence length
    While sentence used lenth > 1:
      Analyse context[-context used length:] -> sentence[:sentence used length]:
        If already exists:
          Increase the weight by 1
          Registers the new chain
      Decrease sentence used lenth by 1
    Decrease context used length by 1
  Appends sentence to context


x being the only variable here, representing the forgetting context delay :
Each x minutes, we 'forget' one sentence from the context to let it size down in order to avoid getting a too big context as the time goes, making it more conversationnal-friendly (tends to better separate conversations from one another when they're well time-separated)
Steps To ReproduceN/A
Additional InformationN/A
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2016-04-07 17:32 asohier New Issue
2016-04-07 17:32 asohier Status new => assigned
2016-04-07 17:32 asohier Assigned To => asohier
2016-07-13 11:54 asohier Status assigned => new

Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker