Kernel.py 文件源码

python
阅读 39 收藏 0 点赞 0 评论 0

项目:loving-ai 作者: opencog 项目源码 文件源码
def _processFormal(self, elem, sessionID):
        """Process a <formal> AIML element.

        <formal> elements process their contents recursively, and then
        capitalize the first letter of each word of the result.

        """
        response = ""
        for e in elem[2:]:
            response += self._processElement(e, sessionID)
        return string.capwords(response)

    # <gender>
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号