superscriptjs / superscript

A dialogue engine for creating chat bots
http://superscriptjs.com
MIT License
1.65k stars 209 forks source link

Auto create facts. #98

Open silentrob opened 9 years ago

silentrob commented 9 years ago

It would be nice to have facts automatically generated. This could be a template to start, but would be nice if we could automatically parse english to SVO.

http://www.quora.com/Whats-the-best-algorithm-for-decomposing-an-English-phrase-into-its-parts-subject-verb-object-etc

http://stackoverflow.com/questions/8063334/extract-triplet-subject-predicate-and-object-sentence

mariusursache commented 9 years ago

This would definitely be interesting, but what could be the usage? Generate a set of world facts based on a set of data? Like generating some sort of ConceptNet?

tommj commented 8 years ago

Could be https://github.com/silentrob/sfacts

silentrob commented 8 years ago

@tommj I'm not sure what you are implying. There was never any question about where the facts would live, but rather how they should be generated in the first place.

tommj commented 8 years ago

@silentrob Misunderstood mariusursache here, and am just now learning more about facts. If you have a sec, what would be the main question: which is the best algorithm, the best (js) parser, or how to process and check the facts for inclusion afterwards?

silentrob commented 8 years ago

So I think those are all valid questions. If it is an algorithm, it would most likely be baked into SuperScript, but another way to do it is to have a series of templates (triggers) that manually check common patterns and create the facts (this could all be in the pre block) and would be easy to opt out should you not want to do that. But if there was a better bulletproof way to do this I would be all for it.