thirdgerb / chatbot Goto Github PK
View Code? Open in Web Editor NEWframework to build chatbot which could handle complex multi-turn conversation by engineering, like build website or app
License: MIT License
framework to build chatbot which could handle complex multi-turn conversation by engineering, like build website or app
License: MIT License
D:\phpProjects\chatbot>php demo/console.php
[info] self binding.......
[info] Commune\Chatbot\Framework\ChatApp start boot chatbot app
[info] run bootstrapper: Commune\Chatbot\Framework\Bootstrap\WelcomeToUserChatbot
[info]
[info] @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
[info]
[info] Boot Commune Chatbot
[info]
[info] @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
[info]
[info] run bootstrapper: Commune\Chatbot\Framework\Bootstrap\LoadConfiguration
[debug] register config entry, name: Commune\Chatbot\App\Platform\ConsoleConfig
[info] run bootstrapper: Commune\Chatbot\Framework\Bootstrap\RegisterProviders
[debug] load base providers :
[debug] register base process service provider Commune\Chatbot\Framework\Providers\ExpHandlerServiceProvider
[debug] register base process service provider Commune\Chatbot\Framework\Providers\OptionRepoServiceProvider
[debug] register base process service provider Commune\Chatbot\Framework\Providers\TranslatorServiceProvider
[debug] register base process service provider Commune\Chatbot\Framework\Providers\ReplyRendererServiceProvider
[debug] register base process service provider Commune\Chatbot\Framework\Providers\LoggerServiceProvider
[debug] register base process service provider Commune\Chatbot\Framework\Providers\EventServiceProvider
[debug] register base process service provider Commune\Chatbot\Framework\Providers\SoundLikeServiceProvider
[debug] register base conversation service provider Commune\Chatbot\Framework\Providers\ConversationalServiceProvider
[debug] register base process service provider Commune\Chatbot\OOHost\HostProcessServiceProvider
[debug] register base conversation service provider Commune\Chatbot\OOHost\HostConversationalServiceProvider
[debug] load process providers :
[debug] load process provider Commune\Chatbot\App\Platform\ReactorStdio\RSServerProvider
[debug] load conversation providers :
[debug] load conversation provider Commune\Chatbot\App\Drivers\Demo\CacheServiceProvider
[debug] load conversation provider Commune\Chatbot\App\Drivers\Demo\SessionServiceProvider
[info] run bootstrapper: Commune\Chatbot\Framework\Bootstrap\LoadComponents
[debug] registering component Commune\Components\Demo\DemoComponent
[debug] registering component Commune\Components\SimpleChat\SimpleChatComponent
[debug] registering component Commune\Components\Story\StoryComponent
[debug] registering component Commune\Components\Rasa\RasaComponent
[debug] registering component Commune\Components\SimpleWiki\SimpleWikiComponent
[debug] registering component Commune\Components\UnheardLike\UnheardLikeComponent
[debug] registering component Commune\Components\Predefined\PredefinedComponent
[debug] registering component Commune\Chatbot\OOHost\NLU\NLUComponent
[debug] component Commune\Components\UnheardLike\UnheardLikeComponent depended by Commune\Components\Demo\DemoComponent has been register
[info] run bootstrapper: Commune\Chatbot\Framework\Bootstrap\ContractsValidator
[debug] check worker process contracts has been bound correctly
[debug] check conversation contracts has been bound correctly
[info] boot base container: Commune\Container\IlluminateAdapter
[info] Commune\Chatbot\Framework\ChatApp booting chatbot app
[debug] boot provider Commune\Chatbot\Framework\Component\Providers\LoadOptionRepoCategoryMeta
[debug] boot provider Commune\Chatbot\Framework\Component\Providers\LoadOptionRepoCategoryMeta
[debug] boot provider Commune\Chatbot\Framework\Component\Providers\LoadOptionRepoCategoryMeta
[debug] boot provider Commune\Chatbot\Framework\Component\Providers\LoadOptionRepoCategoryMeta
[debug] boot provider Commune\Chatbot\Framework\Component\Providers\LoadOptionRepoCategoryMeta
[debug] boot provider Commune\Chatbot\Framework\Component\Providers\LoadOptionRepoCategoryMeta
[debug] boot provider Commune\Chatbot\Framework\Component\Providers\LoadOptionRepoCategoryMeta
[debug] boot provider Commune\Chatbot\Framework\Providers\ExpHandlerServiceProvider
[debug] boot provider Commune\Chatbot\Framework\Providers\OptionRepoServiceProvider
[debug] boot provider Commune\Chatbot\Framework\Providers\TranslatorServiceProvider
[debug] register trans resource, locale: zh, domain:messages, path:D:\phpProjects\chatbot\demo\configs/../../src/Chatbot/App/trans\zh\messages.php
[debug] boot provider Commune\Chatbot\Framework\Providers\ReplyRendererServiceProvider
[debug] boot provider Commune\Chatbot\Framework\Providers\LoggerServiceProvider
[debug] boot provider Commune\Chatbot\Framework\Providers\EventServiceProvider
[debug] boot provider Commune\Chatbot\Framework\Providers\SoundLikeServiceProvider
[debug] boot provider Commune\Chatbot\OOHost\HostProcessServiceProvider
[warning] no self register class found,namespace is Commune\Demo,directory is D:\phpProjects\chatbot\demo\configs/../src/
[debug] boot provider Commune\Chatbot\App\Platform\ReactorStdio\RSServerProvider
[debug] boot provider Commune\Chatbot\Framework\Component\Providers\LoadPsr4SelfRegister
[debug] register context Commune\Components\Demo\Cases\Drink\Memories\OrderMem
[debug] register context Commune\Components\Demo\Cases\Drink\OrderJuiceInt
[debug] register context Commune\Components\Demo\Cases\Maze\Intents\LocationInt
[debug] register context Commune\Components\Demo\Cases\Maze\Intents\MazeBackInt
[debug] register context Commune\Components\Demo\Cases\Maze\Intents\MazeFrontInt
[debug] register context Commune\Components\Demo\Cases\Maze\Intents\MazeLeftInt
[debug] register context Commune\Components\Demo\Cases\Maze\Intents\MazeRightInt
[debug] register context Commune\Components\Demo\Cases\Maze\Intents\TowardsInt
[debug] register context Commune\Components\Demo\Cases\Maze\MazeInt
[debug] register context Commune\Components\Demo\Cases\Maze\Memories\UserPlayHistory
[debug] register context Commune\Components\Demo\Cases\Maze\Tasks\PlayMaze
[debug] register context Commune\Components\Demo\Cases\Questionnaire\ReadPersonality
[debug] register context Commune\Components\Demo\Cases\Weather\TellWeatherInt
[debug] register context Commune\Components\Demo\Contexts\DemoHome
[debug] register context Commune\Components\Demo\Contexts\DevTools
[debug] register context Commune\Components\Demo\Contexts\Features\SubDialogCase
[debug] register context Commune\Components\Demo\Contexts\FeatureTest
[debug] register context Commune\Components\Demo\Contexts\GameTestCases
[debug] register context Commune\Components\Demo\Contexts\NLTestCases
[debug] register context Commune\Components\Demo\Contexts\Testing\GcTask
[debug] register context Commune\Components\Demo\Contexts\WelcomeUser
[debug] register context Commune\Components\Demo\Memories\Sandbox
[debug] boot provider Commune\Chatbot\Framework\Component\Providers\LoadTranslationConfig
[debug] register trans resource, locale: zh, domain:messages, path:D:\phpProjects\chatbot\src\Components\Demo\resources\langs\zh\messages.php
[debug] boot provider Commune\Chatbot\Framework\Component\Providers\RegisterCorpusOptionFromYaml
[info] register corpus option Commune\Chatbot\OOHost\NLU\Options\IntentCorpusOption from D:\phpProjects\chatbot\src\Components\Demo\resources\nlu\intents.yml to corpus
[debug] boot provider Commune\Chatbot\Framework\Component\Providers\RegisterCorpusOptionFromYaml
[info] register corpus option Commune\Chatbot\OOHost\NLU\Options\EntityDictOption from D:\phpProjects\chatbot\src\Components\Demo\resources\nlu\entities.yml to corpus
[debug] boot provider Commune\Chatbot\Framework\Component\Providers\RegisterCorpusOptionFromYaml
[info] register corpus option Commune\Chatbot\OOHost\NLU\Options\SynonymOption from D:\phpProjects\chatbot\src\Components\Demo\resources\nlu\synonyms.yml to corpus
[debug] boot provider Commune\Components\SimpleChat\Providers\RegisterSimpleChat
[debug] simple chat register placeHolderIntent [attitudes.diss]
[debug] simple chat register examples for attitudes.diss
[debug] simple chat register placeHolderIntent [attitudes.laugh]
[debug] simple chat register examples for attitudes.laugh
[debug] simple chat register placeHolderIntent [attitudes.greet]
[debug] simple chat register examples for attitudes.greet
[debug] simple chat register placeHolderIntent [attitudes.thanks]
[debug] simple chat register examples for attitudes.thanks
[debug] simple chat register placeHolderIntent [attitudes.complement]
[debug] simple chat register examples for attitudes.complement
[debug] simple chat register placeHolderIntent [attitudes.stroll]
[debug] simple chat register placeHolderIntent [introduce.whoareyou]
[debug] simple chat register examples for introduce.whoareyou
[debug] simple chat register placeHolderIntent [introduce.contact]
[debug] simple chat register examples for introduce.contact
[debug] simple chat register placeHolderIntent [mood.happy]
[debug] simple chat register examples for mood.happy
[debug] simple chat register placeHolderIntent [mood.sad]
[debug] simple chat register examples for mood.sad
[debug] simple chat register placeHolderIntent [ask.talk]
[debug] simple chat register examples for ask.talk
[debug] simple chat register placeHolderIntent [ask.joke]
[debug] simple chat register examples for ask.joke
[debug] boot provider Commune\Chatbot\Framework\Component\Providers\LoadPsr4SelfRegister
[warning] no self register class found,namespace is Commune\Components\Story\Intents,directory is D:\phpProjects\chatbot\src\Components\Story/Intents/
[debug] boot provider Commune\Chatbot\Framework\Component\Providers\LoadTranslationConfig
[debug] register trans resource, locale: zh, domain:messages, path:D:\phpProjects\chatbot\src\Components\Story/resources/langs\zh\messages.php
[debug] boot provider Commune\Chatbot\Framework\Component\Providers\RegisterCorpusOptionFromYaml
[info] register corpus option Commune\Chatbot\OOHost\NLU\Options\IntentCorpusOption from D:\phpProjects\chatbot\src\Components\Story/resources/nlu/intents.yml to corpus
[debug] boot provider Commune\Components\Story\Providers\StoryServiceProvider
[debug] boot provider Commune\Chatbot\Framework\Component\Providers\LoadTranslationConfig
[debug] register trans resource, locale: zh, domain:messages, path:D:\phpProjects\chatbot\src\Components\SimpleWiki/resources/trans\zh\messages.php
[debug] boot provider Commune\Components\SimpleWiki\Providers\SimpleWikiServiceProvider
[debug] boot provider Commune\Chatbot\Framework\Component\Providers\LoadPsr4SelfRegister
[debug] register context Commune\Components\UnheardLike\Contexts\EpisodeTask
[debug] register context Commune\Components\UnheardLike\Contexts\Memories\EpisodeMem
[debug] boot provider Commune\Chatbot\Framework\Component\Providers\LoadTranslationConfig
[debug] register trans resource, locale: zh, domain:messages, path:D:\phpProjects\chatbot\src\Components\UnheardLike\resources\trans\zh\messages.php
[debug] boot provider Commune\Components\UnheardLike\Providers\UnheardLikeServiceProvider
[debug] boot provider Commune\Chatbot\Framework\Component\Providers\LoadPsr4SelfRegister
[debug] register context Commune\Components\Predefined\Intents\Attitudes\AffirmInt
[debug] register context Commune\Components\Predefined\Intents\Attitudes\AgreeInt
[debug] register context Commune\Components\Predefined\Intents\Attitudes\ComplementInt
[debug] register context Commune\Components\Predefined\Intents\Attitudes\DenyInt
[debug] register context Commune\Components\Predefined\Intents\Attitudes\DissInt
[debug] register context Commune\Components\Predefined\Intents\Attitudes\DontInt
[debug] register context Commune\Components\Predefined\Intents\Attitudes\GreetInt
[debug] register context Commune\Components\Predefined\Intents\Attitudes\ThanksInt
[debug] register context Commune\Components\Predefined\Intents\Dialogue\HelpInt
[debug] register context Commune\Components\Predefined\Intents\Dialogue\OrdinalInt
[debug] register context Commune\Components\Predefined\Intents\Dialogue\RandomInt
[debug] register context Commune\Components\Predefined\Intents\Loop\BreakInt
[debug] register context Commune\Components\Predefined\Intents\Loop\NextInt
[debug] register context Commune\Components\Predefined\Intents\Loop\PreviousInt
[debug] register context Commune\Components\Predefined\Intents\Loop\RewindInt
[debug] register context Commune\Components\Predefined\Intents\Navigation\BackwardInt
[debug] register context Commune\Components\Predefined\Intents\Navigation\CancelInt
[debug] register context Commune\Components\Predefined\Intents\Navigation\HomeInt
[debug] register context Commune\Components\Predefined\Intents\Navigation\QuitInt
[debug] register context Commune\Components\Predefined\Intents\Navigation\RepeatInt
[debug] register context Commune\Components\Predefined\Intents\Navigation\RestartInt
[debug] register context Commune\Components\Predefined\Memories\UserInfoMem
[debug] boot provider Commune\Chatbot\Framework\Component\Providers\RegisterCorpusOptionFromYaml
[info] register corpus option Commune\Chatbot\OOHost\NLU\Options\IntentCorpusOption from D:\phpProjects\chatbot\src\Components\Predefined/resources/intents.yml to corpus
[debug] boot provider Commune\Chatbot\Framework\Component\Providers\RegisterCorpusOptionFromYaml
[info] register corpus option Commune\Chatbot\OOHost\NLU\Options\EntityDictOption from D:\phpProjects\chatbot\src\Components\Predefined/resources/entities.yml to corpus
[debug] boot provider Commune\Chatbot\OOHost\NLU\Providers\CorpusServiceProvider
[debug] boot provider Commune\Chatbot\Framework\Component\Providers\LoadPsr4SelfRegister
[debug] register context Commune\Chatbot\OOHost\NLU\Contexts\CorpusManagerTask
[debug] register context Commune\Chatbot\OOHost\NLU\Contexts\IntCorpusEditor
[debug] register context Commune\Chatbot\OOHost\NLU\Contexts\IntExampleEditor
[debug] register context Commune\Chatbot\OOHost\NLU\Contexts\NLUMatcherTask
[info] Commune\Chatbot\Framework\ChatApp chatbot app booted
Fatal error: Uncaught RuntimeException: Unable to set stream resource to non-blocking mode in D:\phpProjects\chatbot\vendor\react\stream\src\ReadableResourceStream.php:56
Stack trace:
#0 D:\phpProjects\chatbot\vendor\clue\stdio-react\src\Stdio.php(547): React\Stream\ReadableResourceStream->__construct(Resource id #1, Object(React\EventLoop\StreamSelectLoop))
#1 D:\phpProjects\chatbot\vendor\clue\stdio-react\src\Stdio.php(28): Clue\React\Stdio\Stdio->createStdin(Object(React\EventLoop\StreamSelectLoop))
#2 D:\phpProjects\chatbot\src\Chatbot\App\Platform\ReactorStdio\StdioServer.php(44): Clue\React\Stdio\Stdio->__construct(Object(React\EventLoop\StreamSelectLoop))
#3 [internal function]: Commune\Chatbot\App\Platform\ReactorStdio\StdioServer->__construct(Object(Commune\Chatbot\Framework\ChatApp))
#4 D:\phpProjects\chatbot\vendor\illuminate\container\Container.php(843): ReflectionClass->newInstanceArgs(Array)
#5 D:\phpProjects\chatbot\vendor\illuminate\container\Container.php(681): Illuminate\Container\Container->build('Commu in D:\phpProjects\chatbot\vendor\react\stream\src\ReadableResourceStream.php on line 56
https://communechatbot.com/docs/#/zh-cn/lesions/helloworld
文档中的说明应该是基于develop分支的说明吧,主分支并没有demo/console.php文件及相关配置文件,是无法运行的。
感觉可以优化许多流程的交互体验,求开发文档:)
或者对看源码有什么建议呢(比如,从哪开始?有什么关键概念
作者您好,关于智能客服或者多轮对话技术,有更多的开源项目可以推荐下吗
感觉这是一个很有意思的项目,支持作者,加油~~~
make php great agin
一个优秀的项目!
请问下作者,在多轮对话管理中,怎么实现多轮对话的可配置化:比如 只需输入领域意图实体,通过一个流程图就可以实现多轮对话流程?
在你的项目中有考虑这点吗,php不太熟,代码各部分作用还不是很明白。
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.