superscript-editor icon indicating copy to clipboard operation
superscript-editor copied to clipboard

Search Facts

Open silentrob opened this issue 10 years ago • 3 comments

silentrob avatar Feb 26 '15 07:02 silentrob

Does this aim to call Conceptnet/wordnet and generate responses? If you've a plan, I'd like to look into this.

Rajan avatar Jul 17 '15 13:07 Rajan

No facts are truple information that aim in providing common knoledge to your bot. It can be also used in generating part of a reply by replacing a word in the reply.

+ I like ~sport
-  Really? I like ~sport.

In this example ~sport is expanded in both the gambit and reply to resolved to A SPORT defined either in wordnet or the fact DB. (sfacts)

Conceptnet on the other hand is used differently and can provided actual replies. This lays in plugins at the moment. See https://github.com/silentrob/superscript/blob/master/plugins/reason.js#L64-L74 I used it to address questions like "What is a X?" and "What is X used for?", "Where would I put a X?". It can also be used to resolve information too, like "What color is the sky?"

silentrob avatar Jul 17 '15 15:07 silentrob

I just tested this by creating a gambit. This returned various sports:

  • I like [*~1]
  • Really? I like ~sport.

But this one didn't match.

  • I like ~sport
  • Really? I like ~sport.

There seems to be some matching issue. The same ~sport works fine in response!

Rajan avatar Jul 17 '15 16:07 Rajan