miwo「みを」AIくずし字認識アプリ バージョン2miwoApp for AI Kuzushiji Recognition, version 2

くずし字がきちんと読める人は、数千人程度(人口の0.01%程度)と言われます。miwo「みを」は、くずし字で書かれた古い資料を、より多くの人が読み、理解できるようにするためのアプリです。資料をスマートフォンで撮影すると、AIが一文字ずつ読み取り、現代の文字で表示します。AIの読みが間違っていれば、自分で直すことができます。また、AI要約を使うと、読み取った本文を、20言語で知ることができます。おみくじや江戸の料理レシピ、古活字のゲームなど、くずし字や江戸の文化に気軽にふれるコーナーもあります。無料で、ユーザ登録なしで使えます。

It is said that only a few thousand people, about 0.01% of the population, can read kuzushiji (old Japanese cursive script) properly. miwo is an app that helps more people read and understand old documents written in kuzushiji. Photograph a document with your smartphone, and AI reads it character by character and shows it in modern characters. If the AI misreads a character, you can fix it yourself. And with the AI summary, you can learn what the recognised text says, in 20 languages. There are also corners for an easy first touch of kuzushiji and Edo culture: omikuji, Edo recipes and games with old movable type. It is free and needs no account.

CODH Sakana AI

miwo「みを」は、CODHとSakana AIの共同研究により開発しています。miwo is being developed through a research collaboration between CODH and Sakana AI.

「みを」はサーバに何も保存しません。画像も、テキストも、結果も残りません。保存した結果は、お使いのスマホの中だけに残ります。
AIの読みや要約には誤りが含まれることがあります。結果は必ずご自身で確認してください。
miwo keeps nothing on any server: no images, no text, no results. Saved results stay on your phone only.
AI readings and summaries can contain errors. Please always check the results yourself.

「みを」でできること

What miwo can do

「みを」はくずし字を現代の文字に変換するアプリです。バージョン2は、以下の点で大きく進化しました。

miwo is an app that turns kuzushiji into modern characters. Version 2 has grown a great deal in the following ways.

1. より速く、より正確に

1. Faster, and more accurate

新しいAIくずし字認識モデル RURI は、以前の RURI と比べて、処理が約9倍速くなりました。精度も向上し、一文字ごとの正解率が約91%。手書きの写本でも約90%、漢文でも約87%を読み取ります(学習に使っていない27冊の資料で評価)。

The new AI kuzushiji recognition model RURI runs about 9 times faster than the previous RURI. It is also more accurate: about 91% of characters are read correctly, about 90% in handwritten manuscripts, and about 87% in kanbun (evaluated on 27 books not used in training).

2. 20言語でAI要約

2. AI summaries in 20 languages

大規模言語モデル Sakana Namazu が、RURI が読み取った本文を、20言語で要約します。

The large language model Sakana Namazu summarises the text RURI has read, in 20 languages.

3. 文字単位で修正

3. Fix character by character

読みがちがう文字は、一文字ずつ直せます。約5,000種類の文字を学んだ一文字認識モデル Metom の候補から選ぶか、自分で入力します。読み落としや余分な枠も直せます。

Misread characters can be fixed one by one: choose from the candidates of Metom, a single-character recognition model that has learned about 5,000 kinds of characters, or type the character yourself. You can also fix missed characters and extra boxes.

4. 斜めの写真もまっすぐに

4. Angled photos, made straight

ミュージアムの展示ケースの中など、真上から撮れない資料も、四隅を合わせるだけで、正面から撮ったようにまっすぐにできます。

Documents you cannot photograph straight on, such as those in a museum display case, can be straightened just by matching the four corners.

5. 和暦を西暦に

5. Japanese era years in Western years

本文中の和暦(年号と年)を自動的に検出し、大化から令和まで248の年号と年に対応する西暦年を示します。

Japanese era years (an era name and a year) in the text are detected automatically, and the corresponding Western year is shown, for all 248 era names from Taika to Reiwa.

6. 読んだ資料は保存

6. What you read is saved

読んだ資料は自動的に保存され、いいねやコメントをつけて見返せます。複数の資料をまとめてzipでダウンロードすることもできます。

Documents you read are saved automatically; like them, add comments, and look back at them. You can also download several together as one zip.

江戸の文化にふれる

Step into Edo culture

  • そあん:入力した現代の文章を、嵯峨本『徒然草』の古活字で組んだ画像にします。
  • 江戸料理レシピ:昔の料理書12冊のレシピ1,055品を、先生と生徒の会話で紹介します。
  • 江戸時代のおみくじ:江戸時代の『元三大師百籖和解』から、おみくじを引けます。
  • 古活字あわせ:嵯峨本『徒然草』の古活字で、同じ音のひらがなをそろえるゲームです。
  • 浮世絵帖:古活字あわせで現れた浮世絵を集めます。
  • 歌舞伎ブロック:ほっと一息つくための、200レベルのブロックパズルです。
  • Soan: Turns modern Japanese text you type into an image set in the old movable type of the Saga-bon Tsurezuregusa.
  • Edo Recipes: Introduces 1,055 recipes from 12 old cookbooks through a conversation between a teacher and a student.
  • Edo-period omikuji: Draw a fortune from the Edo-period book Ganzan Daishi Hyakusen Wage.
  • Kokatsuji Awase: A game of matching hiragana with the same sound, in the old movable type of the Saga-bon Tsurezuregusa.
  • Ukiyo-e Album: Collect the ukiyo-e prints revealed in Kokatsuji Awase.
  • Kabuki Blocks: A sliding-block puzzle with 200 levels, for taking a breather.
RURI の読みが、資料の文字の上に緑で表示されます。RURI's reading appears in green on the characters of the document.
Sakana Namazu が、本文の要約を20の言語で示します。Sakana Namazu summarises the text in 20 languages.
文字を長押しすると、Metom が読みの候補を示します。Long-press a character and Metom shows candidate readings.
斜めから撮った写真も、四隅を合わせてまっすぐにできます。Photos taken at an angle can be straightened by matching the four corners.
和暦を見つけて、西暦を示します。Japanese era years are found and shown as Western years.
読んだ資料は自動的に保存され、あとから見返せます。Documents you read are saved automatically for later.
そあん:入力した文章が、嵯峨本『徒然草』の古活字で組まれます。Soan: the text you type is set in the old movable type of the Saga-bon Tsurezuregusa.
江戸料理レシピ:先生と生徒の会話で、昔の料理書を読みます。Edo Recipes: read an old cookbook through a teacher and student talking.
江戸時代のおみくじ。漢詩と、その意味が読めます。Edo-period omikuji: read the verse and what it means.
古活字あわせ:同じ音のひらがなをそろえます。Kokatsuji Awase: match hiragana with the same sound.
浮世絵帖:古活字あわせで現れた浮世絵を集めます。Ukiyo-e Album: collect the prints revealed in Kokatsuji Awase.
歌舞伎ブロック:花魁を舞台まで下ろすパズルです。Kabuki Blocks: a puzzle to bring the oiran down to the stage.

くずし字とAI

くずし字がきちんと読める人は数千人程度(人口の0.01%程度)と言われます。日本には膨大な歴史的資料が残されていますが、その多くはくずし字で書かれており、読める人が少ないために、ほとんどの資料はまだ翻刻されていません。

「みを」は、資料をスマホで撮るだけで、AIくずし字認識モデル RURI がくずし字を読み取るアプリです。

RURI は、画像の中の文字を一文字ずつ見つけて読む「文字単位」の認識を行います。文字単位で読む方式は、学習データの作成も後処理もずっと難しくなりますが、歴史的資料を読んで研究する分野を今後さらに広げていくために、私たちはこの方式を大切にしています。

文字を一つずつ見るため、RURI は画像にない文字を書き足すことはありません。書き手が写し間違えた箇所も、間違ったまま読みます。読みやすくするために文章を整えることもしません。歴史的資料のOCRで求められるのは、読みやすいテキストではなく、資料にできるだけ忠実なテキストだと考えているからです。

澪標 Miotsukushi

わびぬれば今はたおなしなにはなる 身をつくしてもあはむとぞおもふ

あなたとのことが噂になり、思い悩んでいるのだから、今となってはもう身を捨てたのと同じこと。難波の澪標(みをつくし)のように、この身を尽くしてでも、あなたに会おうと思う。

『百人一首』元良親王(二十番)『後選和歌集』恋・九六一
『日本古典籍データセット』(国文研等所蔵)

「みを」の名前は『源氏物語』第14帖「澪標(みをつくし)」にちなみます。澪標が船の水先案内となるように、「みを」がくずし字資料の海を旅する人の案内となることを願っています。

Kuzushiji and AI

It is said that only a few thousand people, about 0.01% of the population, can read kuzushiji properly. Kuzushiji (くずし字) are Japanese cursive characters: handwritten forms in which the strokes of standard characters are abbreviated, also reproduced in printed books such as those of the Edo period. They were in everyday use until the early 20th century. Japan holds a vast number of historical documents, but most of them are written in kuzushiji, and because so few people can read it, most of these documents have not yet been transcribed.

miwo is an app that reads kuzushiji: take a photo of a document with your phone, and the AI kuzushiji recognition model RURI reads it.

RURI recognizes text character by character: it finds each character in the image and reads it. Reading at the character level makes both building training data and post-processing much harder, but we hold to this approach because we believe it is essential for growing the field of reading and studying historical documents in the future.

Because it looks at each character one by one, RURI never adds characters that are not in the image. Where the writer made a copying mistake, RURI reads the mistake as it is written. Nor does it smooth the text to make it easier to read. What we need from OCR for historical documents is not readable text, but text that is as faithful to the document as possible.

澪標 Miotsukushi

わびぬれば今はたおなしなにはなる 身をつくしてもあはむとぞおもふ

Now that I am lost in this distress, it is all the same to me. Like the channel markers (Miwotsukushi) of Naniwa, I will meet you, even if it costs me my life.

Hyakunin Isshu, Prince Motoyoshi (No. 20); Gosen Wakashū, Love, 961
Japanese Classical Books Dataset (National Institute of Japanese Literature and others)

The name miwo comes from "Miotsukushi" (澪標), chapter 14 of The Tale of Genji. Miotsukushi were channel markers that guided boats through the water; we hope miwo will be a guide for people travelling the sea of kuzushiji documents.

AIモデル

AI models

RURIAIくずし字認識モデル。画像の中の文字を一文字ずつ見つけて読む「文字単位」の認識を行います。AI kuzushiji recognition model. It recognises text character by character: it finds each character in the image and reads it.
Metom一文字認識モデル。長押しした一文字を読み直して、読みの候補を示します。Single-character recognition model. It reads the one character you long-pressed again and shows candidate readings.
Sakana Namazu読み取った本文から、選んだ言語で資料の要約を作ります。Writes a summary of the document from the recognised text, in the language you choose.
Evo-Ukiyoe-v2歌舞伎ブロックの画像の生成に使っています。Used to generate the images in Kabuki Blocks.

ご利用にあたって

Before using the app

「みを」のご利用にあたっては、プライバシーポリシー/利用規約をお読みください。

When using the miwo app, please read the privacy policy and terms of use.

「みを」のAIくずし字認識は決して完璧ではありません。くずし字認識結果には誤りが含まれることがありますので、ユーザご自身でご確認ください。

The AI kuzushiji recognition is not perfect. Results may contain errors, so please check them yourself.

結果の利用について

Using the results

「みを」を利用して得られた認識結果や要約は、自由に利用可能であり、出所の明示は必要ありません。ただしアプリ名やURL(https://codh.rois.ac.jp/miwo/)などを明記できる場合は、ご協力をお願いいたします。なお、もとの資料の画像の権利は、それぞれの所蔵者にあります。

The recognition results and summaries you get with miwo are free to use, and no credit is required. Where you can, however, we would appreciate it if you mention the app name or its URL (https://codh.rois.ac.jp/miwo/). Rights to the images of the original documents belong to their holders.

そあん(soan)ソフトウェアを利用して生成した画像は、自由に利用可能であり、出所の明示は必要ありません。ただしサービス名やURL(https://codh.rois.ac.jp/soan/)などを明記できる場合は、ご協力をお願いいたします。

Images generated with the Soan software are free to use, and no credit is required. Where you can, however, we would appreciate it if you mention the service name or its URL (https://codh.rois.ac.jp/soan/).

どの機能が何をどこへ送信するかは、プライバシーポリシーの「2. 本アプリが送信する情報と利用目的」に記載しています。

Which feature sends what, and where, is listed in section 2 of the privacy policy, "What the App sends, and why".

「みを」はサーバに何も保存しません。画像も、テキストも、結果も残りません。保存した結果は、お使いのスマホの中だけに残ります。miwo keeps nothing on any server: no images, no text, no results. Saved results stay on your phone only.

問題解決

Problems

  1. 最新のOSにアップデートすると問題が解決する場合があります。
  2. アプリの動作には、カメラや写真へのアクセス許可が必要です。スマホの設定から許可してください。
  1. You may be able to solve the problem by updating your OS to the latest version.
  2. The app needs permission to access the camera and photos. Please allow them in your device settings.

もし以上の対応では解決できない場合は、以下のページから状況をお知らせください。スマホ/タブレットの機種(モデル)や、OSバージョンなどについても、できるだけ情報提供をお願いいたします。

If the actions above cannot solve the problem, please tell us your situation from the page below. Information about the model of your smartphone or tablet and the version of the OS is much appreciated.

「みを」アプリに関するご意見Feedback for the "miwo" app

画像の出典

  • サンプル1:国立国会図書館蔵:『這奇的見世物語』3巻
  • サンプル2:国文学研究資料館蔵:『夫木和歌抄』
  • サンプル3:国文学研究資料館蔵:『膳部料理抄』
  • サンプル4:国立国会図書館蔵:『安達原氷之姿見』昔語本田濫觴 前編3巻
  • おみくじ:『元三大師百籖和解』(京都大学附属図書館所蔵)をもとに生成AIで作成
  • 浮世絵帖・古活字あわせ:シカゴ美術館(Art Institute of Chicago)所蔵、パブリックドメイン(CC0)
  • 江戸料理レシピ:『日本古典籍データセット』(国文研等所蔵)/提供:人文学オープンデータ共同利用センター
  • 歌舞伎ブロック:Evo-Ukiyoe-v2による生成画像

RURIの学習データ

開発者

カラーヌワット・タリン (Sakana AI)

共同開発者

北本朝展 (CODH/NII/Sakana AI)

ハムディ・アブドゥーラフマン (Sakana AI)

今宿祐希 (Sakana AI)

シーン誠 (Sakana AI)

共同開発AI

Lucas

Yagen

Atsushi

ロゴデザイン

Rinna♡猫りんな

運営

人文学オープンデータ共同利用センター(CODH)

Powered by Sakana AI

問い合せ先

miwo@nii.ac.jp

Image sources

  • Sample 1: National Diet Library, 『這奇的見世物語』vol. 3
  • Sample 2: National Institute of Japanese Literature, 『夫木和歌抄』
  • Sample 3: National Institute of Japanese Literature, 『膳部料理抄』
  • Sample 4: National Diet Library, 『安達原氷之姿見』昔語本田濫觴 part 1, vol. 3
  • Omikuji: made with generative AI from Ganzan Daishi Hyakusen Wage (Kyoto University Library)
  • Ukiyo-e Album and Kokatsuji Awase: Art Institute of Chicago, public domain (CC0)
  • Edo Recipes: Japanese Classical Books Dataset (National Institute of Japanese Literature and others), provided by the Center for Open Data in the Humanities
  • Kabuki Blocks: images generated with Evo-Ukiyoe-v2

RURI training data

Developer

Tarin Clanuwat (Sakana AI)

Co-developers

Asanobu Kitamoto (CODH/NII/Sakana AI)

Abderrahmene Hamdi (Sakana AI)

Yuki Imajuku (Sakana AI)

Makoto Shing (Sakana AI)

AI co-developers

Lucas

Yagen

Atsushi

Logo design

Rinna♡猫りんな

Operated by

Center for Open Data in the Humanities (CODH)

Powered by Sakana AI

Contact

miwo@nii.ac.jp

関連ページ

Related pages

使い方How to use / プライバシーポリシー/利用規約Privacy Policy / Terms of Use / ライセンスLicense