Skip to content

Commit 96788f4

Browse files
committed
shiritori/README: 日本語
Change-Id: I2ae533db9dad5989d3315d9f5d38080fcc955845
1 parent ccb5e92 commit 96788f4

File tree

1 file changed

+19
-22
lines changed

1 file changed

+19
-22
lines changed

README.md

Lines changed: 19 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,52 @@
1-
# しりとり Actions on Google Sample
1+
# しりとり Dialogflow サンプルゲーム
22

3-
しりとりのゲーム.
3+
## 設定
44

5-
## Setup
6-
7-
1. Create [Dialogflow](https://dialogflow.com/) Project.
8-
1. Enable fullfillment using firebase functions.
9-
1. Download `edict2` dictionary from http://www.edrdg.org/jmdict/edict_doc.html.
10-
1. Convert the dictionary to utf-8:
5+
1.[Dialogflow](https://dialogflow.com/)」のプロジェクトを作成する。
6+
1. 「Firebase Cloud Functions」のfullfillmentをつかう。
7+
1. [edict2](http://www.edrdg.org/jmdict/edict_doc.html)の辞書をダウンロードする。
8+
1. utf-8に変換する:
119

1210
iconv -f euc-jp -t utf-8 edict2 -o edict2.utf8
1311

14-
1. Extract only food noons:
12+
1. 食べ物だけをフィルターする:
1513

1614
cat edict2.utf8 | grep '/(n' | grep '{food}' > edict2-food.utf8
1715

18-
1. Load corpus in firebase realtime database.
16+
1. 「Firebase Database」にアップロードする:
1917

2018
npm install scripts/
2119
node scripts/admin.js food edict2-food.utf8 /path/to/service-account
2220
^C
2321

24-
1. Deploy firebase functions.
22+
1. 「Firebase Functions」をデプロイする。
2523

2624
firebase deploy
2725

28-
1. Bump the `shiritori` cloud functions memory allocation to 512MB.
29-
1. Set locale to japanese in the simulator.
30-
1. Try the Assistant app.
26+
1. [Cloud Console](https://console.cloud.google.com) `shiritori` のRAMを512MBまで上げる。
27+
1. 「Actions on Google Simulator」でロケールを日本語に設定する。
28+
1. アシスタントアプリをテストしてみる。
3129

3230
> テスト用アプリにつないで
3331

34-
## Test locally
32+
## ローカルでのテスト
3533

36-
1. Download `edict2` dictionary from http://www.edrdg.org/jmdict/edict_doc.html.
37-
1. Convert the dictionary to utf-8:
34+
1. [edict2](http://www.edrdg.org/jmdict/edict_doc.html)の辞書をダウンロードする。
35+
1. utf-8に変換する:
3836

3937
iconv -f euc-jp -t utf-8 edict2 -o edict2.utf8
4038

41-
1. Extract only food noons:
39+
1. 食べ物だけをフィルターする:
4240

4341
cat edict2.utf8 | grep '/(n' | grep '{food}' > edict2-food.utf8
4442

45-
1. Generate local corpus:
43+
1. ローカルのコーパスを作成する:
4644

47-
npm install scripts/
4845
node scripts/admin.js food edict2-food.utf8 > functions/shiritori/corpus.json
4946

50-
1. Try locally:
47+
1. ローカルで起動してテストする:
5148

52-
node functions/shiritori/main.js
49+
node functions/shiritori/main.js
5350

5451
```
5552
しりとり

0 commit comments

Comments
 (0)