質問編集履歴
5
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -146,7 +146,7 @@
|
|
146
146
|
|
147
147
|
<pattern>My name is * _</pattern>
|
148
148
|
|
149
|
-
<think><set name="usename"><star/></set></think>
|
149
|
+
<think><set name="username"><star/></set></think>
|
150
150
|
|
151
151
|
<template>Thank you. Your name has been registered.</template>
|
152
152
|
|
4
文法の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,8 +1,4 @@
|
|
1
|
-
```ここに言語を入力
|
2
|
-
|
3
|
-
コード
|
4
|
-
|
5
|
-
|
1
|
+
### 前提・実現したいこと
|
6
2
|
|
7
3
|
Telegramにお喋りボットをPythonを使って実装したいです。
|
8
4
|
|
@@ -114,7 +110,7 @@
|
|
114
110
|
|
115
111
|
<pattern>_ Japan _</pattern>
|
116
112
|
|
117
|
-
<template>Ah Japan is really a divine country, isn
|
113
|
+
<template>Ah Japan is really a divine country, isnt it.</template>
|
118
114
|
|
119
115
|
</category>
|
120
116
|
|
@@ -130,7 +126,7 @@
|
|
130
126
|
|
131
127
|
<pattern>_ France _</pattern>
|
132
128
|
|
133
|
-
<template>Ah I
|
129
|
+
<template>Ah Ive been to France to visit the friend in Toulouse. That was definitely superb.</template>
|
134
130
|
|
135
131
|
</category>
|
136
132
|
|
@@ -138,7 +134,7 @@
|
|
138
134
|
|
139
135
|
<pattern>_ I went to * _</pattern>
|
140
136
|
|
141
|
-
<template>Oh you visited <star/>? That
|
137
|
+
<template>Oh you visited <star/>? Thats absolutely a good place.</template>
|
142
138
|
|
143
139
|
</category>
|
144
140
|
|
@@ -192,17 +188,17 @@
|
|
192
188
|
|
193
189
|
<that>Do you like watching films?</that>
|
194
190
|
|
195
|
-
<template>I do recommend you watch
|
191
|
+
<template>I do recommend you watch Weathering With You.</template>
|
196
|
-
|
192
|
+
|
197
|
-
</category>
|
193
|
+
</category>
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
|
203
|
-
<category>
|
199
|
+
<category>
|
204
|
-
|
200
|
+
|
205
|
-
<pattern>Any suggestion for today
|
201
|
+
<pattern>Any suggestion for todays lunch?</pattern>
|
206
202
|
|
207
203
|
<template>
|
208
204
|
|
3
書式改定
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,4 +1,8 @@
|
|
1
|
+
```ここに言語を入力
|
2
|
+
|
3
|
+
コード
|
4
|
+
|
1
|
-
### 前提・実現したいこと
|
5
|
+
```### 前提・実現したいこと
|
2
6
|
|
3
7
|
Telegramにお喋りボットをPythonを使って実装したいです。
|
4
8
|
|
@@ -70,9 +74,7 @@
|
|
70
74
|
|
71
75
|
### 該当のソースコード
|
72
76
|
|
73
|
-
|
74
|
-
|
75
|
-
|
77
|
+
```xml
|
76
78
|
|
77
79
|
<?xml version="1.0" encoding="UTF-8">
|
78
80
|
|
@@ -256,19 +258,13 @@
|
|
256
258
|
|
257
259
|
|
258
260
|
|
259
|
-
</aiml>
|
261
|
+
</aiml>
|
260
|
-
|
261
|
-
|
262
|
+
|
262
|
-
|
263
|
-
|
263
|
+
```
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
264
|
|
269
265
|
また、Pythonによるaimlのファイルの読み込みは以下の通りです:
|
270
266
|
|
271
|
-
|
267
|
+
```python
|
272
268
|
|
273
269
|
import aiml
|
274
270
|
|
@@ -306,17 +302,17 @@
|
|
306
302
|
|
307
303
|
|
308
304
|
|
309
|
-
if name=='main':
|
305
|
+
if __name__=='__main__':
|
310
306
|
|
311
307
|
osyaberi=Osyaberi()
|
312
308
|
|
313
309
|
bot=TelegramBot(osyaberi)
|
314
310
|
|
315
|
-
bot.run()
|
311
|
+
bot.run()
|
316
|
-
|
317
|
-
|
312
|
+
|
318
|
-
|
319
|
-
|
313
|
+
```
|
314
|
+
|
315
|
+
|
320
316
|
|
321
317
|
|
322
318
|
|
2
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -306,7 +306,7 @@
|
|
306
306
|
|
307
307
|
|
308
308
|
|
309
|
-
if
|
309
|
+
if name=='main':
|
310
310
|
|
311
311
|
osyaberi=Osyaberi()
|
312
312
|
|
@@ -314,7 +314,7 @@
|
|
314
314
|
|
315
315
|
bot.run()
|
316
316
|
|
317
|
-
(
|
317
|
+
(インデントに関して問題はありません。所々__が消えてますがそこも問題ありません。)
|
318
318
|
|
319
319
|
(以上Pythonファイル)
|
320
320
|
|
1
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -258,6 +258,8 @@
|
|
258
258
|
|
259
259
|
</aiml>
|
260
260
|
|
261
|
+
(インデントなどが消えてますが問題ありません。)
|
262
|
+
|
261
263
|
(以上aimlファイル)
|
262
264
|
|
263
265
|
|