バグ #469
「幽遊白書」がヒットしない
Description
App Engine ログ:
2018-12-01 14:07:54.962 JST 幽遊白書 (/base/data/home/apps/b~api-project-379224789817/1.413563651849891408/domain.py:151)
google-home-shiritori/data/animedb.json
{
"key": "\u30e6\u30a6\u30e6\u30a6\u30cf\u30af\u30b7\u30e7",
"org": [
"\u5e7d\u2606\u904a\u2606\u767d\u66f8"
],
"first": "\u30e6",
"end": "\u30e8"
},
デコード結果:
{
"key": "ユウユウハクショ",
"org": [
"幽☆遊☆白書"
],
"first": "ユ",
"end": "ヨ"
},
Related issues
Updated by みぞ @mizo0203 almost 7 years ago
辞書データ animedb.json には「☆」が含まれるが、 Google Home からの入力「幽遊白書」には「☆」が含まれないためヒットしない
Yahoo! デベロッパーネットワーク テキスト解析 ルビ振り Web API で改修見込みあり。
Google Home からの入力を読みがなに変換することで、辞書データにヒットさせる。
※ ルビ振り Web API は、24 時間以内で 1 つのアプリケーション ID につき50000 件のリクエストが上限となっています。また、1 リクエストの最大サイズを100KB に制限しています。
https://developer.yahoo.co.jp/webapi/jlp/furigana/v1/furigana.html
# telnet jlp.yahooapis.jp 80
Trying 183.79.217.124...
Connected to edge12.g.yimg.jp.
Escape character is '^]'.
GET /FuriganaService/V1/furigana?sentence=%E5%B9%BD%E9%81%8A%E7%99%BD%E6%9B%B8 HTTP/1.1
Host: jlp.yahooapis.jp
User-Agent: Yahoo AppID: <あなたのアプリケーションID>
HTTP/1.1 200 OK
Date: Sat, 01 Dec 2018 07:03:15 GMT
Vary: Accept-Encoding
Content-Length: 482
Content-Type: text/xml; charset="UTF-8"
Age: 0
Connection: keep-alive
Via: http/1.1 edge2658.img.djm.yahoo.co.jp (ApacheTrafficServer [c sSf ])
Server: ATS
<?xml version="1.0" encoding="UTF-8"?>
<ResultSet xmlns="urn:yahoo:jp:jlp:FuriganaService" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:yahoo:jp:jlp:FuriganaService https://jlp.yahooapis.jp/FuriganaService/V1/furigana.xsd">
<Result>
<WordList>
<Word>
<Surface>幽遊白書</Surface>
<Furigana>ゆうゆうはくしょ</Furigana>
<Roman>yuuyuuhakusyo</Roman>
</Word>
</WordList>
</Result>
</ResultSet>
Connection closed by foreign host.
Updated by みぞ @mizo0203 almost 7 years ago
WebAPI の使い方(GETリクエスト): https://developer.yahoo.co.jp/appendix/request/rest/get.html
Updated by 古明地こいし @redmizo_info almost 7 years ago
Commit: e14bc3b6c226e4d9ed139f19d00d2f3237c88f47
https://github.com/mizo0203/google-home-shiritori/commit/e14bc3b6c226e4d9ed139f19d00d2f3237c88f47
Author: みぞ@CrazyBeatCoder mizo0203@mizo0203.com
Date: 2018-12-06 (Thu, 06 Dec 2018)
Log Message:
fix(*.py): Added to get reading kana from Japanese input from dialogflow. fixs #469 @4.0h #472 @1.0h
Updated by 古明地こいし @redmizo_info almost 7 years ago
Commit: e14bc3b6c226e4d9ed139f19d00d2f3237c88f47
https://github.com/mizo0203/google-home-shiritori/commit/e14bc3b6c226e4d9ed139f19d00d2f3237c88f47
Author: みぞ@CrazyBeatCoder mizo0203@mizo0203.com
Date: 2018-12-06 (Thu, 06 Dec 2018)
Log Message:
fix(*.py): Added to get reading kana from Japanese input from dialogflow. fixs #469 @4.0h #472 @1.0h
Updated by 古明地こいし @redmizo_info almost 7 years ago
Commit: e14bc3b6c226e4d9ed139f19d00d2f3237c88f47
https://github.com/mizo0203/google-home-shiritori/commit/e14bc3b6c226e4d9ed139f19d00d2f3237c88f47
Author: みぞ@CrazyBeatCoder mizo0203@mizo0203.com
Date: 2018-12-06 (Thu, 06 Dec 2018)
Log Message:
fix(*.py): Added to get reading kana from Japanese input from dialogflow. fixs #469 @4.0h #472 @1.0h
Updated by みぞ @mizo0203 over 6 years ago
- Status changed from 新規 to 完了
- % Done changed from 0 to 100