Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
0
02-homework-daxiong
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
大雄
02-homework-daxiong
Commits
420f5fd7
Commit
420f5fd7
authored
Jan 15, 2019
by
大雄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AIML的运行
parents
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
0 deletions
+46
-0
aiml_main.py
+10
-0
basic_chat.aiml
+18
-0
std-startup.xml
+18
-0
No files found.
aiml_main.py
0 → 100644
View file @
420f5fd7
import
aiml
kernel
=
aiml
.
Kernel
()
kernel
.
learn
(
"std-startup.xml"
)
kernel
.
respond
(
"load aiml b"
)
while
True
:
print
(
kernel
.
respond
(
input
(
"请输入你的问题>>"
)))
basic_chat.aiml
0 → 100644
View file @
420f5fd7
<aiml version ="0.9.2" encoding = "UTF-8">
<category>
<pattern>you</pattern>
<template>
oh hello!!!
</template>
</category>
<category>
<pattern>my name is lilei</pattern>
<template>
fine thank you!
</template>
</category>
</aiml>
std-startup.xml
0 → 100644
View file @
420f5fd7
<aiml
version =
"0.9.2"
encoding =
"UTF-8"
>
<category>
<pattern>
LOAD AIML B
</pattern>
<template>
<learn>
basic_chat.aiml
</learn>
</template>
</category>
</aiml>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment