Closed kwalcock closed 1 year ago
This is a draft so that we can discuss here how to add the beliefs. The changes might need a different branch. If we can figure out what beliefs to display based on the document and text, that would seem to suffice. Some information may have to come from the backend corpus or something else that we add there.
def sentence_click(self, text: str):
t = time.time()
document = next(document for document in self.grid.clusters[self.clicked_col].documents if document.readable == text)
beliefs = "Keith believes to have been here."
self.update_track_actions([self.round, 'human', 'click', t, 'sentence', text, None])
return [document.pre_context, text.split('.',1)[1], document.post_context, beliefs]
FYI, @maxaalexeeva
I started a beliefs
branch for this.
Show how beliefs might fit in.