takahi-i / dialoguefirm Goto Github PK
View Code? Open in Web Editor NEWTiny chat bot engine for Unity
Home Page: https://github.com/takahi-i/DialogueFirm/blob/master/Assets/DialogFirm/Doc/main.adoc
License: GNU General Public License v3.0
Tiny chat bot engine for Unity
Home Page: https://github.com/takahi-i/DialogueFirm/blob/master/Assets/DialogFirm/Doc/main.adoc
License: GNU General Public License v3.0
クラウドワークスで依頼する
Main class
check input configuraiton before run.
"responders" : {
"fail": [
{
"type": "random",
"list": [
"Oh my god... Project looks chaos ..."
],
"condition" : {
"must" : [
{
"range": {"anger-level": { "gte": 3}}
}
]
}
},
{
"type": "random",
"list": [
"Please fix the build failure"
]
}
],
"default": [{
"type": "random",
"name": "default",
"list": [
"Build looks nice :-)"
]
}]
}
"effects": [
{
"field": "prev-anger-level",
"type": "set-field",
"refer": "anger-level"
},
{
"field": "anger-level",
"type": "set",
"value": 0
}
]
Ambiguous Match implemented with preprocessor and hashmap
{
'what' => [1 ,2 ,3 ,4]
'思われる' => [1, 4, 6]
}
{
"target" : "zatusudan",
"type" : "ambigous",
"map" : {
"hi" : "hi there",
"suck": "you too"
}
}
"types" :
[
{
"name" : "ingredients",
"examples", ["potate", "tomato"]
},
{
"name" : "locations",
"examples", ["paris", "new york"]
}
],
intents: [
{
"name": "repeat",
"match" : {
"type" : "verbatim",
"patterns" : [ "repeat", "pardon me?" ],
"condition" : {"current-recipe" : "not null"}
}
},
{
"name": "recipe-search-with-ingredients",
"match" : {
"type" : "whether-forecast",
"slots" : [{
"name" : "location1",
"type" : "location"
} ]
"patterns" : [ "Tell me the weather forecast for #{location}?" ]
}
},
]
https://github.com/takahi-i/fabot/blob/master/src/ts/intent_handler.ts
https://github.com/takahi-i/fabot/blob/master/src/ts/intent_detector.ts#L98
https://github.com/takahi-i/fabot/blob/master/src/ts/effect/effect.ts
https://github.com/takahi-i/fabot/blob/master/test/fixtures/ci_sample_conf.json#L28
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.