ChatGPT4oを利用したイラスト作成(2)-ピーターパンの挿絵を題材として

Barrie,J. M.(1911)Peter and Wendyに掲載されているピーターパンに関するF. D. Bedfordの下記挿絵を素材として、ChatGPT4oにイラストを作成させた。

converted PNM file

プロンプト文は「添付ファイルのイラストをカラー化してください。」という単純なものであったが、その結果は下記のようなものであった。

次に、「ピーター・パンの左下の動物をパンダに代えて下さい。」というプロンプト文を与えたところ、下記のようにバンダに変更された下記のようなイラストが作成された。

さらに「ピーター・パンの周りの鳥の数が多すぎます。鳥の数をもとのイラストのようにしてください。」というプロンプト文を与えたが、残念なことにこのプロンプト文の指示とは逆に鳥の数は減少せず、船や森の形などが変わっただけでほとんど先の図と同じであった。

そこで、「イラストの中から鳥をすべて消去してください。」というプロンプト文を与えたところ、鳥の数はゼロにはならなかったが、かなり減少した下記のようなイラスト図になった。

さらに、イラスト図の中で一羽の鳥を指定して、「clear」というプロンプト文を与えた結果が下記の通りである。狙いとは異なる結果となったが、寝そべったパンダも可愛いい。

以上の結果だけでは即断できないが、プロンプト文だけで思い通りのイラスト図にすることはなかなか難しい。それでも興味深いイラスト図が簡単に生成できることは興味深い。

カテゴリー: AIこぼれ話, イラスト作成, ピーターパン | 1件のコメント

アートと技術革新 - ポーラ美術館企画展「モダン・タイムス・イン・パリ 1925 ― 機械時代のアートとデザイン」展示終了に寄せて

アートのあり方は、技術革新とともに変化する。
 
印象派と「写真」技術革新
19世紀後半のフランスに発した印象派は、その当時になり社会的普及を開始した「写真」という技術革新に影響を受けた、と一般に言われている。
例えば、日本語版ウィキペディア「印象派」の中では、後に第1回印象派展と呼ばれるようになった展覧会が写真館で開催されたことや、ドガが熱心な写真家であったことなどを記すとともに、写真と印象派の関係について下記のような記述がなされている。
 
写真が広がり始め、カメラが携帯可能になった。写真は気取りのない率直な態度で、ありのままの現実をとらえるようになった。写真に影響されて、印象派の画家たちは風景の光の中だけでなく、人々の日常生活の瞬間の動きを表現するようになった。
写真は現実を写し取るための画家のスキルの価値を低下させた。印象派の発展は、写真が突きつけた難題に対する画家たちのリアクションとも考えられる。
(中略)
写真のおかげで画家たちは他の芸術的現手段を追求し始めた。現実を模写することを写真と張り合うのでなく、画家たちは「画像を構想した主観性そのもの、写真に模写した主観性そのものをアートの様式に取り込むよって、彼らが写真よりうまくできる一つのこと」にフォーカスしたのである。
 

印象派の形成=発展が19世紀後半期における「写真」という技術革新に大きな影響を受けたものだとすれば、それと類似のことが現代アートと生成AIとの間にも起こると見るのが自然であろう。

[参考イラスト]
ChatGPT4oに「下記の文章に添えるイラスト図を作成してください。」というプロンプト文を与えた結果は下記の通りである。

 

なお「下記WEBページにあるモネの絵をいれながら、前記の文章に添えるイラスト図を再作成してください。https://en.wikipedia.org/wiki/Water_Lilies_(Monet_series)」、「睡蓮を描いたモネの絵をいれながら、前記の文章に添えるイラスト図を再作成してください。」、「モネの「睡蓮」にインスパイアされた要素を取り入れつつ、19世紀の写真技術と印象派の関係を表現するシーンを描いたイラスト図を作成してください。」、、「モネの「睡蓮」にインスパイアされた雰囲気や要素を取り入ながら、19世紀の写真技術と印象派の関係を表現するシーンを描いたイラスト図を作成してください。」などのプロンプト文を与えたところ、「申し訳ありませんが、今回のリクエスト内容がコンテンツポリシーに抵触しているため、イラストの生成ができませんでした。」という結果となり、イラスト図は生成されなかった。

 

そこで「19世紀の写真技術と印象派の関係を表現するシーンを描いたイラスト図を作成してください。」というプロンプト文に代えたところ、モネの「睡蓮」を暗示させるような絵画を含む下記のようなイラスト図がようやく作成された。

 

 

さらに「19世紀の画家が写真を見ながら絵を描いているシーンを作成してください。」というプロンプト文を与えたところ、下記のようなイラスト図が作成された。

 
「生成AI」技術革新はアートをどのように変容=発展させるのか?
ポーラ美術館は、企画展「モダン・タイムス・イン・パリ 1925 ― 機械時代のアートとデザイン」の紹介WEBページにあるように、「コンピューターやインターネットが高度に発達し、AI(人工知能)が生活を大きく変えようとする現在において、約100年前の機械と人間との関係は、私たちが未来をどのように生きるかを問いかけてくるでしょう。」という問題意識のもと開催されたものである。

今から百数十年前に、「写真」という技術革新の登場=発展によって絵画における写実主義がその社会的存在意義を問われたのと同じように、現代アートは「生成AI]という技術革新によって人間がアートを「創造」することとは何かという問いを突き付けられているように確かに思われる。

そうした意味で、印象派の名作を数多く所属するポーラ美術館が企画展として2023年12月16日から本日までAIとアートをサブテーマとする「モダン・タイムス・イン・パリ 1925 ― 機械時代のアートとデザイン」という企画展を開催していたことには大きな社会的意味がある。

 なお生成AIは、テキストを生成するだけではなく、写真やイラストなどの画像を生成することができる。人間型ロボットにAIを搭載し、絵筆を持たせて油絵を描かせる試みはIBM(2022)「ロボットが絵画する日 〜Vol.4  主体性の獲得、表現力向上 編〜」2022年11月08日などに紹介されているようにこれまでもなされてきたが、ChatGPT4oなど技術的により優れた生成AIを、プロの画家がファインチューニングすれば、芸術的にも意味のある「オリジナル」な絵画の「創造」ー しかもこれまでは困難であった「量産」も ー 技術的には可能になるであろう。

 しかし生成AI搭載ロボットが直接的には絵筆をもって描いた絵画は、「誰」が描いたことになるのであろうか?絵筆を操作している人間型ロボットなのか?それとも人間型ロボットに対して、使用する絵の具を指示したり、絵筆の動かし方を指示する生成AIなのか?それとも生成AIをtrainingしたり、ファインチューニングした人間なのだろうか?

 そもそも、こうした問いは適切な問いなのだろうか?
 
 アート創造における「創造」性をどのような形で論じるのがより適切なのだろうか?

 印象派がこれまでなかったような絵画を創造することで「絵画」における創造性の意味を実践的に明らかにしようとしたように、生成AIを用いて人間の絵画的創造性の新たなあり方を実践的に示すことが現在、強く求められている。

[ChatGPT4oに作成させた参考イラスト]

 

補足:美術館展示における「生成AI」技術革新の利用
ポーラ美術館の今回の展示で筆者が面白いと思ったのは、展示物に関する解説テキストを生成AIで音声化し、スマートフォンで自由に聞けるようにされていたことである。
 ポーラ美術館では常設展示の印象派絵画をスマートフォンなどで撮影することを許している点でも先進的であったが、今回の展示では、生成AIを利用し、日本語、英語、フランス語、ドイツ語、スぺイン後、韓国語、中国語(簡体/繁体)という多言語で解説が自由に聞けるようになっていた。

 ただ少し残念だったのは、そのAI音声の質が一世代前のAI音声だったことである。本サイトのカテゴリー「文章読み上げ」に収録した記事で具体的に示しているように、Google Text-to-Speechなど最近の生成AIによるAI音声読み上げは、リアルな人間と区別がつかないほどの水準に達している。今後の展示においては、そうした最近の生成AI技術を利用されることを強く希望したい。

カテゴリー: AIこぼれ話, アートと技術革新, イラスト作成, 生成AIの利用法 | コメントする

生成AIによる英文校閲ー芥川龍之介『羅生門』のAI英語訳を例として

ChatGPT4oを利用した芥川龍之介『羅生門』のAI英語訳に関して、ChatGPT4o, Perplexity AI、Google Gemini Advanceを用いて英文校閲をおこなった。

  1. ChatGPT4oの回答
  2. Perplexity AI(GPT4)の回答
  3. Google Gemini Advanceの回答
  4. Perplexity AI(Claude3 Opus)の回答

現在のところ、長文のプロンプト文ではあまり適切な回答が生成されないため、下記では短めのプロンプト文とした。

ChatGPT4o、および、Perplexity AIに与えたプロンプト文
下記の日本語原文に関する二つの英訳例について、英語文章としてのわかりやすさ、文法的正確性という視点からチェックしてください。
 そしてそれぞれの英訳例について、修正した方が良い点があれば、修正理由とともに修正案を示してください。
 

#####日本語原文
 ある日の暮方の事である。一人の下人が、羅生門の下で雨やみを待っていた。

 広い門の下には、この男のほかに誰もいない。ただ、所々丹塗の剥げた、大きな円柱に、蟋蟀が一匹とまっている。羅生門が、朱雀大路にある以上は、この男のほかにも、雨やみをする市女笠や揉烏帽子が、もう二三人はありそうなものである。それが、この男のほかには誰もいない。

#####英訳例1
It was one evening at dusk.A servant was waiting for the rain to stop under Rashomon.

Apart from this man, there was no one else under the wide gate. Only a single cricket perched on a large pillar, its vermilion lacquer peeling in places. Since Rashomon was located on Suzaku Avenue, one would expect at least two or three others—wearing city hats or squeezed hats—taking shelter from the rain besides this man. However, there was no one else but him.

#####英訳例2
One evening, a servant was waiting for the rain to stop under the Rashomon gate.

Besides him, there was no one else under the wide gate, except for a cricket perched on a large, partially peeled red pillar. Given that the Rashomon was on Suzaku Avenue, there should have been at least two or three others, wearing ichimegasa hats or eboshi caps, taking shelter from the rain. However, there was no one else but him.

 
1. ChatGPT4oによる英文校閲例

上記のプロンプト文に対するChatGPT4oの回答結果の優れた点および問題点は下記の通りである。

「Rashomon」の前に定冠詞「the」を追加するべきとする修正案や、「丹塗」の色に関する形容詞に関して「red」から「vermillion」に変更する修正案など有用な回答となっている。

ーーー 以下、ChatGPT4oによる回答 ーーー

### 英訳例1

わかりやすさと文法的正確性のチェック:

  1. “It was one evening at dusk.A servant was waiting for the rain to stop under Rashomon.”
    修正点: “evening at dusk”は冗長です。”at dusk”だけで十分です。また、「Rashomon」の前に定冠詞「the」を追加する必要があります。
    修正案: “It was dusk. A servant was waiting for the rain to stop under the Rashomon gate.”

  2. “Apart from this man, there was no one else under the wide gate.”
    修正点: ここは明確で、文法的にも正しいです。

  3. “Only a single cricket perched on a large pillar, its vermilion lacquer peeling in places.”
    修正点: ここも明確で、文法的に正しいです。

  4. “Since Rashomon was located on Suzaku Avenue, one would expect at least two or three others—wearing city hats or squeezed hats—taking shelter from the rain besides this man.”
    修正点: “city hats” や “squeezed hats” は適切な訳ではありません。日本の文化を考慮して「市女笠」と「揉烏帽子」を具体的に説明する方が良いです。
    修正案: “Since Rashomon was located on Suzaku Avenue, one would expect at least two or three others—wearing ichimegasa hats or eboshi caps—taking shelter from the rain besides this man.”

  5. “However, there was no one else but him.”
    修正点: ここは明確で、文法的に正しいです。
 

全体の修正案:

“It was dusk. A servant was waiting for the rain to stop under the Rashomon gate. Apart from this man, there was no one else under the wide gate. Only a single cricket perched on a large pillar, its vermilion lacquer peeling in places. Since Rashomon was located on Suzaku Avenue, one would expect at least two or three others—wearing ichimegasa hats or eboshi caps—taking shelter from the rain besides this man. However, there was no one else but him.”
 

### 英訳例2

わかりやすさと文法的正確性のチェック:

  1. “One evening, a servant was waiting for the rain to stop under the Rashomon gate.”
    修正点: ここは明確で、文法的に正しいです。

  2. “Besides him, there was no one else under the wide gate, except for a cricket perched on a large, partially peeled red pillar.”
    修正点: “partially peeled red pillar” は「部分的に剥がれた赤い柱」を指しており、文法的には問題ないが、「red」を「vermillion」にすることで元の文に忠実になります。
    修正案: “Besides him, there was no one else under the wide gate, except for a cricket perched on a large, partially peeled vermilion pillar.”

  3. “Given that the Rashomon was on Suzaku Avenue, there should have been at least two or three others, wearing ichimegasa hats or eboshi caps, taking shelter from the rain.”
    修正点: ここは明確で、文法的に正しいです。

  4. “However, there was no one else but him.”
    修正点: ここも明確で、文法的に正しいです。
 

全体の修正案:

“One evening, a servant was waiting for the rain to stop under the Rashomon gate. Besides him, there was no one else under the wide gate, except for a cricket perched on a large, partially peeled vermilion pillar. Given that the Rashomon was on Suzaku Avenue, there should have been at least two or three others, wearing ichimegasa hats or eboshi caps, taking shelter from the rain. However, there was no one else but him.”
 

### 結論

両方の英訳例とも、文法的にほぼ正確で、わかりやすいです。ただし、英訳例1の冒頭の表現に少し冗長な部分があり、修正が必要です。また、両方の英訳で「市女笠」や「揉烏帽子」の具体的な説明を取り入れることで、より原文に忠実な翻訳が可能になります。
 
2. Perplexity AIでGPT4を利用言語とした英文校閲例
Perplxity Aiによる回答でも、「Rashomon」の前に定冠詞「the」を追加するべきとする修正案や、「丹塗」の色に関する形容詞に関して「red」から「vermillion」に変更する修正案など有用な回答となっている。

ただし市女笠や揉烏帽子という語句の訳に関しては、「日本語の「市女笠」や「揉烏帽子」をそのまま使う方が良い。」という修正案は適切と思われる。

—- 以下、Perplexity AIによる回答 —-

### 英訳例1のチェックと修正

#### わかりやすさと文法的正確性

わかりやすさ: 全体的にわかりやすいが、一部の表現がやや不自然。
文法的正確性: 大きな文法的誤りはないが、いくつかの文が改善の余地がある。
 

#### 修正点と修正案

1. “It was one evening at dusk.”
修正理由: “one evening at dusk” は冗長であり、”one” は不要。
修正案: “It was an evening at dusk.”

2. “A servant was waiting for the rain to stop under Rashomon.”
修正理由: “Rashomon” の前に “the” を追加して特定の門を示す。
修正案: “A servant was waiting for the rain to stop under the Rashomon gate.”

3. “Apart from this man, there was no one else under the wide gate.”
修正理由: “Apart from this man” はやや不自然。 “Besides this man” の方が自然。
修正案: “Besides this man, there was no one else under the wide gate.”

4. “Only a single cricket perched on a large pillar, its vermilion lacquer peeling in places.”
修正理由: “Only a single cricket” は “a single cricket” で十分。
修正案: “A single cricket perched on a large pillar, its vermilion lacquer peeling in places.”

5. “Since Rashomon was located on Suzaku Avenue, one would expect at least two or three others—wearing city hats or squeezed hats—taking shelter from the rain besides this man.”
修正理由: “city hats or squeezed hats” は不自然。日本語の「市女笠」や「揉烏帽子」をそのまま使う方が良い。
修正案: “Since Rashomon was located on Suzaku Avenue, one would expect at least two or three others—wearing ichimegasa hats or eboshi caps—taking shelter from the rain besides this man.”

6. “However, there was no one else but him.”
修正理由: “but him” は “but for him” の方が自然。
修正案: “However, there was no one else but for him.”

 

### 修正後の英訳例1

It was an evening at dusk. A servant was waiting for the rain to stop under the Rashomon gate.

Besides this man, there was no one else under the wide gate. A single cricket perched on a large pillar, its vermilion lacquer peeling in places. Since Rashomon was located on Suzaku Avenue, one would expect at least two or three others—wearing ichimegasa hats or eboshi caps—taking shelter from the rain besides this man. However, there was no one else but for him.

 

### 英訳例2のチェックと修正

#### わかりやすさと文法的正確性

わかりやすさ: 全体的にわかりやすいが、一部の表現がやや不自然。
文法的正確性: 大きな文法的誤りはないが、いくつかの文が改善の余地がある。
 

#### 修正点と修正案

1. “One evening, a servant was waiting for the rain to stop under the Rashomon gate.”
修正理由: 文法的には問題ないが、”One evening” の後にカンマを追加して文を区切る。
修正案: “One evening, a servant was waiting for the rain to stop under the Rashomon gate.”

2. “Besides him, there was no one else under the wide gate, except for a cricket perched on a large, partially peeled red pillar.”
修正理由: “partially peeled red pillar” は “partially peeled vermilion pillar” の方が原文に忠実。
修正案: “Besides him, there was no one else under the wide gate, except for a cricket perched on a large, partially peeled vermilion pillar.”

3. “Given that the Rashomon was on Suzaku Avenue, there should have been at least two or three others, wearing ichimegasa hats or eboshi caps, taking shelter from the rain.”
修正理由: “the Rashomon” は “Rashomon” で十分。
修正案: “Given that Rashomon was on Suzaku Avenue, there should have been at least two or three others, wearing ichimegasa hats or eboshi caps, taking shelter from the rain.”

4. “However, there was no one else but him.”
修正理由: “but him” は “but for him” の方が自然。
修正案: “However, there was no one else but for him.”

 

### 修正後の英訳例2

One evening, a servant was waiting for the rain to stop under the Rashomon gate.

Besides him, there was no one else under the wide gate, except for a cricket perched on a large, partially peeled vermilion pillar. Given that Rashomon was on Suzaku Avenue, there should have been at least two or three others, wearing ichimegasa hats or eboshi caps, taking shelter from the rain. However, there was no one else but for him.

 

### 結論

両方の英訳例は、わかりやすさと文法的正確性の観点から良好ですが、いくつかの修正を加えることでさらに自然な英語表現にすることができます。
 
 
3. Google Gemini Advanceによる英文校閲例
Gemini Advanceで出力させた回答結果1の、Gemini AdvanceによるAI音声読み上げ

日本語文の箇所と、英語文の箇所について、一応の読みわけがなされており、それぞれ自然なAI音声となっている。ただし日本語と英語が入り混じった文に関しては、英語部分も日本語的読み上げとなっており、少し残念な結果となっている。
 
Google Gemini Advanceの場合には、ChatGPT4oやPerplexity AIとは異なり、上記のようなプロンプト文ではあまり適切な回答を生成しなかった。二つの英訳例を与えるのではなく、下記のように一つづつ与えた方がより適切で、より詳細なチェックがなされた。
 また同一プロンプト文に対して、同時に3つの回答が作成され、ワンクリックで簡単に見ることができるようになっている。

 

 Gemini Advanceは、ChatGPT4oやPerplexityとは異なり、「文学」的観点からのチェック作業をしっかりとおこなっている。回答結果の適切性は別として、英語化に際してどのような視点からのチェックを行うべきなのかについて、有益な示唆を与えている。
 また、回答1では、市女笠や揉烏帽子という語句の訳に関して、a city woman in her ichimegasa hat, or a couple of men in their eboshi caps. というように、「市女笠を被った女性」、「揉烏帽子を被った男性」というように語句を補った英訳となっている点も、ChatGPT4oやPerplexityよりも優れている。
 ただし、回答1では「市女笠を被った女性」を単数形としているにもかかわらず、「揉烏帽子を被った男性」を複数形としている点はあまり適切とは思えない。また「丹塗」の色に関する形容詞に関して「red」から「vermillion」に変更する修正提案がない点は少し不適切と思われる。

Google Gemini Advanceに与えたプロンプト文

下記の日本語原文に関する英訳について、英語文章としてのわかりやすさ、文法的正確性という視点からチェックしてください。
 そして修正した方が良い点があれば、修正理由とともに修正案を示してください。

#####日本語原文
 ある日の暮方の事である。一人の下人が、羅生門の下で雨やみを待っていた。
広い門の下には、この男のほかに誰もいない。ただ、所々丹塗の剥げた、大きな円柱に、蟋蟀が一匹とまっている。羅生門が、朱雀大路にある以上は、この男のほかにも、雨やみをする市女笠や揉烏帽子が、もう二三人はありそうなものである。それが、この男のほかには誰もいない。

#####英訳例
One evening, a servant was waiting for the rain to stop under the Rashomon gate.
Besides him, there was no one else under the wide gate, except for a cricket perched on a large, partially peeled red pillar. Given that the Rashomon was on Suzaku Avenue, there should have been at least two or three others, wearing ichimegasa hats or eboshi caps, taking shelter from the rain. However, there was no one else but him.

—- 以下、Gemini Advanceによる回答1 —-
英訳例は全体的にわかりやすく、文法的にも正確です。以下に、より自然な表現や、原文のニュアンスを反映した修正案を提案します。

修正案

One evening, a lone servant waited beneath the Rashomon gate for the rain to subside. The wide gateway stood empty save for him and a cricket perched atop one of the large, red pillars, its paint peeling in places. Considering the Rashomon’s location on Suzaku Avenue, one might have expected to find at least a few others seeking refuge from the downpour—perhaps a city woman in her ichimegasa hat, or a couple of men in their eboshi caps. Yet, there was no one.
 

修正理由

  • lone servant: 原文の「一人」を強調し、孤独感を表現しました。
  • waited beneath: 「下で」をより自然な英語に置き換えました。
  • subside: 「やむ」をより詩的な表現にしました。
  • stood empty save for him: 「ほかに誰もいない」を強調し、門の寂しさを表現しました。
  • atop: 「に」をより正確に表現しました。
  • city woman in her ichimegasa hat: 「市女笠」をより具体的に説明しました。
  • a couple of men in their eboshi caps: 「揉烏帽子」を複数形にし、より自然な表現にしました。
  • seeking refuge from the downpour: 「雨やみをする」をより具体的な行動で表現しました。
  • Yet, there was no one: 文末を簡潔にし、孤独感を強調しました。
 

—- 以下、Gemini Advanceによる回答2 —-
英訳例は文法的にも正確で、意味も通じています。しかし、英語話者にとってより自然で分かりやすい表現にするために、いくつかの修正を提案します。

修正案

One evening, a lone servant waited beneath the Rashomon gate for the rain to stop.

The wide gate offered shelter to no one but him, save for a cricket perched on a large, red pillar, its paint peeling in places. One might expect to find at least a few others huddled here, seeking refuge from the rain under ichimegasa hats or eboshi caps, given the Rashomon’s location on Suzaku Avenue. Yet, there was no one.

修正理由

  • One evening, a lone servant waited…: 原文の「ある日の暮方の事である」の雰囲気を出すため、「lone」を追加し、たった一人で待っている状況を強調しました。
  • The wide gate offered shelter to no one but him…: 「Besides him, there was no one else under the wide gate」をより詩的な表現に修正しました。
  • save for a cricket…: except for よりも古風な言い回しで、原文の雰囲気に合うように変更しました。
  • its paint peeling in places: partially peeled red pillar をより自然な英語表現にしました。
  • One might expect to find…: Given that the Rashomon was on Suzaku Avenue を、仮定法を使ってより間接的な表現にしました。
  • huddled here: taking shelter from the rain を、より具体的な表現にしました。
  • Yet, there was no one: However, there was no one else but him を、短く、しかし強い表現にしました。

全体として、原文の雰囲気を保ちつつ、英語話者にとってより自然で分かりやすい表現を目指しました。

—- 以下、Gemini Advanceによる回答3 —-
全体的な評価:

英訳例は原文の意味を正確に捉えており、文法的にも概ね正確です。ただし、英語話者がより自然に理解できるように、表現を調整する余地があります。

修正案:

One evening, a lone servant was waiting out the rain under the Rashomon gate.
The wide gate stood empty save for him and a cricket perched on one of the large pillars, its vermilion paint flaking in spots.
One might have expected to find at least two or three others huddled here, seeking refuge from the rain under ichimegasa hats or eboshi caps, given the Rashomon’s location on Suzaku Avenue. But no, the servant was utterly alone.
 

修正理由:

  • “a lone servant” を使うことで、下人が一人ぼっちであることを強調し、原文の雰囲気をより良く伝えます。
  • “save for him and” は “besides him, there was no one else… except for” よりも簡潔で詩的な表現です。
  • “its vermilion paint flaking in spots” は元の “partially peeled red pillar” よりも、古びた柱の様子をより鮮明に描写します。
  • “One might have expected to find” や “huddled here” を使うことで、羅生門に人がいないことに対する意外性を強調します。
  • “But no, the servant was utterly alone” は、下人が完全に一人であることを強調し、原文の余韻を残します。
 

その他:

“waiting for the rain to stop” を “waiting out the rain” に変更しました。これは、単に雨が止むのを待つだけでなく、雨が通り過ぎるのを待つというニュアンスを含んでいます。
 

全体として、修正案は原文の雰囲気をより忠実に再現し、英語話者にとってより自然で理解しやすい表現になっています。

 
4. Perplexity AIでClaude3 Opusを利用言語とした場合の英文校閲例

市女笠や揉烏帽子という語句の訳に関して、wearing ichimegasa hats (straw hats) or eboshi caps (black-lacquered headgear worn by nobles)といった修正案を提示している点などが評価できる。

—- Google Gemini Advanceに与えたのと同じプロンプト文を与えた場合の、Claude3 Opus(Perplexity AI)による回答 —-

Here is my assessment of the English translation, along with suggested revisions and reasons:

The translation is generally clear and understandable. The grammar is mostly accurate, but there are a few points that could be improved:

1. “One evening” could be made more specific to match the original text’s mention of “暮方”. I suggest revising to:

“One evening at dusk, a servant was waiting for the rain to stop under the Rashomon gate.”
 

2. The second sentence has an unnecessarily complex structure. I recommend splitting it into two sentences for better clarity:

“Besides him, there was no one else under the wide gate. Only a cricket was perched on one of the large red pillars, its paint peeling in places.”
This improves the flow and makes each detail easier to visualize.
 

3. In the last sentence, “there should have been” sounds a bit awkward. Consider this revision:

“Given that the Rashomon was on Suzaku Avenue, one might expect to see at least two or three others taking shelter from the rain, wearing ichimegasa hats or eboshi caps. However, there was no one else but him.”
This sounds more natural while still conveying the same meaning.
 

4. I would also recommend adding a brief explanation of the ichimegasa hats and eboshi caps, as readers unfamiliar with the historical context may not understand these terms. You could add a brief clause:

“…wearing ichimegasa hats (straw hats) or eboshi caps (black-lacquered headgear worn by nobles).”
 

Overall, with these minor adjustments for clarity and flow, the translation effectively conveys the atmosphere and details of the original Japanese text. The suggested revisions aim to make the English version even more accessible and engaging for the target audience.[1][2][3]

上記文章に関連して、Perplexity AI搭載のPlayground v2.5で出力させた画像

上記文章に関連して、Perplexity AI搭載のStableDiffusionXLで出力させた画像

上記文章に関連して、Perplexity AI搭載のDALL E3で出力させた画像

Citations:
[1] https://japaneseliteratureinenglish.com
[2] https://metropolisjapan.com/recognizing-old-japanese-literature/
[3] https://typeset.io/questions/how-to-evaluate-the-accuracy-of-a-translation-372x21zzhl
[4] https://arxiv.org/abs/2105.14277
[5] https://readjapaneseliterature.com/a-not-comprehensive-list-of-japanese-fiction-in-english-translation-authors-m-z/
[6] https://www.cotoclub.com/10-must-read-japanese-books-translated-into-english/
[7] https://www.tuttle.co.jp/products/show/isbn:9784805314630/language:en
[8] http://www.meijigakuin.ac.jp/~pmjs/archive/2002/rajomon.html
[9] https://www.getblend.com/blog/quality-assessment-translations/
[10] https://www.amazon.co.jp/-/en/I-J-Parker/dp/0143035606
[11] https://en.wikipedia.org/wiki/Rash%C5%8Dmon_%28short_story%29
[12] https://www.getblend.com/blog/evaluate-translation-checklist/
[13] https://www.wochikochi.jp/english/special/2012/02/bungakuhonyaku.php
[14] https://www.jpf.go.jp/e/project/culture/publication/exchange_publish/
[15] https://www.amazon.co.jp/-/en/dp/1415955409
[16] https://www.pactranz.com/translation-quality/
[17] https://www.jpf.go.jp/e/project/culture/publication/supportlist_publish/worth_sharing/
[18] https://www.the-kansai-guide.com/en/article/item/16126/
[19] https://www.publishersweekly.com/9780312287986
[20] https://www.panmacmillan.com/blogs/literary/the-best-japanese-books-in-translation

 

カテゴリー: 日本語AI音声, 生成AIの利用法, 英文校閲, 英語AI音声 | 1件のコメント

ChatGPT4oによるレシート画像の認識

ChatGPTは画像の中のテキストを認識することもできる。

例えばスマートフォンで撮影したレシートをChatGPTにアップロードし、
購入したものの品名と価格のリストを作成させることもできる。

アップロードした画像は下記である。

oplus_32

最初はChatGPT4を指定し、「画像はスーパーでの買い物のレシートです。買ったもの、および、その金額のリストを作成して下さい。」というプロンプト文を与えた。

これに対するChatGPT4の回答は下記の通りであった。

このレシートには以下の商品が記載されています:

  1. 玉ねぎ – ¥88
  2. じゃがいも – ¥98
  3. にんじん – ¥98
  4. キャベツ – ¥98
  5. 鶏胸 – ¥198
  6. いかだ焼おにぎり – ¥248
  7. 鯛切身 – ¥335
  8. 鯛切身 – ¥341
  9. バラ餃子 – ¥159

合計金額は税込みで¥1,891です。

上記リストの1~4は正しいが、5以降は品名が間違っている。

そこで今度は、ChatGPT4oを指定し、「先ほどのリストの5番目以降は金額は合っていますが、品物の名前は違っています。リストを訂正して下さい。」というプロンプト文を与えた。

これに対するChatGPT4oによる回答は下記の通りであった。

このレシートには以下の商品が記載されています:

  1. 玉ねぎ袋 – ¥88
  2. じゃがいも – ¥98
  3. にんじん – ¥98
  4. キャベツ – ¥98
  5. 果物 – ¥198
  6. いかたこ坊主 水 – ¥248
  7. 肩切落し – ¥335
  8. 肩切落し – ¥341
  9. バラエティたまご – ¥159

合計金額は税込みで¥1,891です。

プロンプト文で指摘した品物の名前の誤りは正しく訂正された。
ただ残念ながらまだ不適切な部分があります。

私もすぐには気がつかなかったため、先のプロンプト文で指示し忘れたのですが、「サラダ」が抜けています。
そこで今度は「リストには一つ品物が抜けています。もう一度、リストを作成しなおしてください。」という指示を与えた。

その結果は下記のとおりである。

申し訳ありません。もう一度、リストを確認して作成しなおしました。

このレシートには以下の商品が記載されています:

  1. 玉ねぎ袋 – ¥88
  2. じゃがいも – ¥98
  3. にんじん – ¥98
  4. キャベツ – ¥98
  5. 果物 – ¥198
  6. サラダナ – ¥88
  7. いかたこ坊主 水 – ¥248
  8. 肩切落し – ¥335
  9. 肩切落し – ¥341
  10. バラエティたまご – ¥159

合計金額は税込みで¥1,891です。

今度はすべて正解です。ChatGPT4oは本当に使い物になりそうです。

<注>

なお上記は有料版のChatGPTアカウントによるものであるが、無料版のChatGPTアカウントでも、画像のアップロードおよびテキスト認識機能は利用できる。
 そこで試しに、無料版のChatGPTアカウントで同じ画像ファイルで「画像はスーパーでの買い物のレシートです。買ったもの、および、その金額のリストを作成して下さい。」という指示を与えたところ、今度は一発で正解した。
 無料版のChatGPTアカウントでは利用モデルを指定できないが、GPT4oを制限付きながら利用できるので、その成果が現れたのであろう。(なお ログインしているアカウントが異なるので、有料版のChatGPTアカウントでのやり取りに関するmemory機能が働いているわけではないと思われる。)
カテゴリー: AIこぼれ話, ChatGPT4o, 生成AIの利用法, 画像認識 | コメントする

生成AIを利用した「日本語テキストの英語化」(その5)ーMicrosoft Bing AIによる芥川龍之介『羅生門』の英訳

Microsoft Bing AIを利用して芥川龍之介『羅生門』を英訳させた結果は下記の通りである。


Microsoft Bingによる英訳

Ryunosuke Akutagawa
Rashomon

It happened one evening. A servant was waiting for the rain to stop under the gate of Rashomon. He was alone; no one else was there except for a cricket perched on one of the large, partially red-painted pillars. Given that Rashomon was located on the Suzaku Avenue, one would expect to see a few more people seeking shelter from the rain, such as women with market baskets or men with umbrellas. But there was no one else.

The reason was that in the past few years, Kyoto had suffered a series of disasters such as earthquakes, typhoons, fires, and famines. As a result, the city had become desolate. According to old records, people had even resorted to selling wood from destroyed Buddha statues and religious ornaments, which were piled up by the roadside. With the city in such a state, no one bothered to repair Rashomon. Consequently, it became a den for foxes and thieves, and eventually, it even became a dumping ground for unclaimed corpses. Thus, as soon as it got dark, everyone avoided the area near the gate.

Instead, crows had started to gather there. During the day, one could see them flying around the high finials of the gate, cawing and circling. Especially at sunset, when the sky above the gate turned red, the crows were clearly visible, like sesame seeds scattered across the sky. Naturally, they came to peck at the flesh of the dead bodies on the gate. However, today, perhaps because it was late, not a single crow was in sight. Only their droppings could be seen, dotted white on the overgrown, crumbling stone steps. The servant sat on the top step, his washed-out indigo trousers under him, absent-mindedly watching the rain fall while he fidgeted with a large boil on his right cheek.

Earlier, I wrote that the servant was waiting for the rain to stop. However, even if the rain stopped, he had no particular place to go. Normally, he would return to his master’s house, but he had been dismissed a few days ago. As mentioned before, the city of Kyoto was in decline, and the servant’s dismissal was a small repercussion of this downturn. Therefore, it would be more accurate to say that the servant, caught in the rain, had nowhere to go and was at a loss. Moreover, today’s weather had significantly affected the servant’s sentimentalism. The rain that started falling around the hour of the Monkey (3-5 PM) showed no sign of stopping. So, the servant, needing to figure out how to survive the next day, aimlessly followed his thoughts while listening to the sound of the rain falling on Suzaku Avenue.

The rain enveloped Rashomon, gathering a rustling sound from afar. The evening darkness lowered the sky, and looking up, one could see the gate’s roof supporting heavy, dark clouds on its diagonally protruding tiles.

To find a way out of an impossible situation, one cannot be choosy about the means. If one is selective, they will end up starving to death on the roadside or under a mound of earth and eventually be discarded like a dog on top of the gate. If one is not selective—The servant’s thoughts circled back to the same conclusion after much deliberation. However, this “if” remained an “if” indefinitely. While affirming the idea of not being selective about the means, the servant lacked the courage to positively affirm the inevitable conclusion that followed: “There is no other choice but to become a thief.”

Here is the continuation of the translation in clear English:

The servant sneezed loudly and then, with some effort, stood up. The evening chill in Kyoto was such that one would desire a brazier to ward off the cold. The wind blew unreservedly between the pillars of the gate, accompanied by the twilight. The cricket that had been perched on the red-painted pillar had also gone somewhere else.

Hunching his neck and raising the shoulders of his indigo blue work coat over his yellow sweatshirt, the servant looked around the gate. He was looking for a place where he could spend the night comfortably, without fear of the rain or being seen by others. Fortunately, his eyes caught a wide, red-painted ladder leading up to the tower above the gate. If there were people above, they would only be corpses. With this in mind, the servant stepped onto the first rung of the ladder, careful not to let the sword at his waist slip from its sheath.

A few minutes later, a man was crouched halfway up the wide ladder leading to the tower of Rashomon, holding his breath and peering up. The light of a fire from above faintly illuminated his right cheek, which bore a boil amidst his short beard. The servant had assumed that the only ones above were the dead. But as he climbed a few steps, he saw that someone was tending a fire above, moving it around. The murky, yellowish light flickered on the cobweb-covered ceiling, making it immediately apparent.

The servant, silent as a gecko, finally climbed to the top of the steep ladder. He flattened his body as much as possible and stretched his neck forward, peering fearfully into the tower.

Inside, he saw several corpses thrown carelessly about, just as the rumors had described. However, the range of the firelight was narrower than he had expected, and he could not tell how many there were. All he could make out were some naked corpses and others clothed. It seemed there were both men and women among them. The corpses lay scattered on the floor, their mouths agape and hands outstretched, resembling clay figures so much that one might doubt they had ever been living humans. The dim firelight cast shadows on the lower parts of their bodies, making them appear even darker, while they lay in eternal silence.

The servant involuntarily covered his nose from the stench of decay, but almost immediately, he forgot to do so. A strong emotion had nearly robbed him of his sense of smell.

For the first time, the servant noticed a human figure crouching among the corpses. It was a short, thin, white-haired old woman, dressed in a cypress-bark colored kimono, resembling a monkey. She held a pine torch in her right hand and seemed to be peering into the face of one of the corpses. Judging by the length of the hair, it was probably a woman’s corpse.

The servant, driven by six parts fear and four parts curiosity, had momentarily forgotten to breathe. To borrow the words of an ancient chronicler, he felt as if “the hairs on his body were thickening.” Then the old woman, inserting the pine torch between the floorboards, began to pluck the long hairs from the corpse’s head, one by one, as a monkey might pick lice from its young. The hair seemed to come out easily.

As each hair was plucked, the servant’s fear gradually dissipated, replaced by a growing intense hatred—not necessarily towards the old woman, but rather a general revulsion towards all evil, which grew stronger by the minute. If someone had presented the servant with the choice he had pondered earlier under the gate—whether to die of starvation or become a thief—he would have chosen starvation without hesitation. His hatred for evil burned as fiercely as the pine torch the old woman had stuck in the floor.

Of course, the servant did not understand why the old woman was plucking the hair from the corpses. Therefore, he could not rationally decide whether it was good or evil. However, for the servant, the mere act of plucking hair from the dead on this rainy night atop Rashomon was an unforgivable evil. Naturally, he had long forgotten that he had been contemplating becoming a thief himself just a short while ago.

Then, with a surge of energy in his legs, the servant leaped up from the ladder. Striding boldly with his hand on the hilt of his sword, he approached the old woman, who was understandably startled.

The old woman, upon seeing the servant, leaped up as if shot from a crossbow.
“Where do you think you’re going?” the servant shouted, blocking the old woman’s path as she stumbled over the corpses in a panic, trying to flee. The old woman tried to push past the servant, but he pushed back, refusing to let her go. The two grappled silently among the corpses for a while, but the outcome was clear from the start. The servant finally grabbed the old woman’s arm and forced her down. It was an arm of skin and bone, like a chicken’s leg.


Here is the final part of the story translated into clear and understandable English:

“What were you doing? Speak, or else this is what awaits you.” The servant, having pushed the old woman away, suddenly drew his sword, flashing the white steel before her eyes. But the old woman remained silent. Her hands trembled, and she gasped for breath, her eyes wide open as if they might pop out, stubbornly silent as if mute. Seeing this, the servant realized for the first time that the old woman’s life and death were entirely at his mercy. This awareness gradually extinguished the fierce hatred that had been burning within him. All that remained was a tranquil sense of accomplishment, as if a task had been successfully completed. Softening his voice, the servant looked down at the old woman and said, “I am not an officer of the Keibi-eisei (police). I am just a traveler who happened to pass by this gate. There’s no need for me to tie you up or anything like that. All you need to do is tell me what you were doing up here at this hour.”

The old woman then looked up at the servant with even wider eyes, observing him with the sharp gaze of a carnivorous bird. She moved her wrinkled lips, which were almost merged with her nose, as if chewing on something. Her thin throat and the pointed Adam’s apple moved visibly. Then, from her throat, a voice as hoarse as a crow’s caw reached the servant’s ears, gasping, “I was pulling out this hair, this hair, to make a wig.”

The servant was disappointed by the old woman’s answer, which was unexpectedly mundane. And with the disappointment, the previous hatred returned, accompanied by a cold disdain. Perhaps sensing his mood, the old woman, still holding the long hair she had plucked from the corpse, spoke in a croaking voice, stuttering, “Indeed, pulling hair from the dead may be a terrible thing. But all the dead here are people who deserve no better. The woman whose hair I was pulling sold dried snake pieces, claiming they were dried fish, to the samurai camps. If she hadn’t died of the epidemic, she would still be selling them now. And her ‘dried fish’ was said to taste so good that the samurai always bought it for their meals. I don’t think what she did was wrong; she had no choice but to avoid starvation. So, I don’t think what I was doing was wrong either. I also have no choice but to avoid starvation. And this woman, who knew all too well about having no choice, would probably forgive me for what I’m doing.”

The old woman said something to that effect.

The servant sheathed his sword and listened to her story with a detached air, holding the hilt with his left hand. Of course, he was still concerned about the large boil on his right cheek. But as he listened, a certain courage began to grow within him—a courage that had been lacking when he was under the gate and which was now moving in a completely different direction from the courage he had felt when he first climbed up to the gate and captured the old woman. The servant was no longer torn between starving to death or becoming a thief. At that moment, the thought of starvation was so far from his mind that it was almost inconceivable.

“Is that so?” he said mockingly after the old woman finished her story. Then, stepping forward, he suddenly released his hand from the boil and, grabbing the old woman by the collar, said fiercely, “Then you won’t blame me for stripping you. I, too, must do this to avoid starving to death.”

The servant quickly stripped the old woman of her clothes. Then, as she clung to his legs, he roughly kicked her down onto the corpses. It was only five steps to the ladder’s entrance. Clutching the cypress-bark colored kimono he had taken, the servant swiftly descended the steep ladder into the depths of the night.

After lying motionless as if dead for a while, the old woman soon rose from among the corpses, her naked body illuminated by the still-burning fire. Groaning, she crawled to the mouth of the ladder and looked down from the gate. Outside, there was nothing but the pitch-black night.

The whereabouts of the servant remain unknown.

This concludes the translation of the excerpt from Ryunosuke Akutagawa’s “Rashomon.” If you have any more requests or need further assistance, please let me know.
I hope this translation helps you understand the continuation of the story. If you need further assistance or have more text to translate, please let me know.

I hope this translation conveys the essence and subtleties of the original text. If you need further assistance or another section translated, feel free to ask.

カテゴリー: 生成AIの利用法 | コメントする

生成AIを利用した「日本語テキストの英語化」(その4)ー芥川龍之介『羅生門』の英訳およびAI音声(1)

ChatGPT4oを利用して芥川龍之介『羅生門』を英訳させた結果およびそのAI音声は下記の通りである。本稿はまだ作業途中のバージョンである。これからまずは、各AIによる翻訳結果のクロスチェック等の作業を行う予定である。

芥川龍之介『羅生門』の英訳(ChatGPT4o その1)

ChatGPT4oによる英語AI音声(利用Voice:Cove)

全文の英語のAI音声読み上げが現時点ではできていない。冒頭の第一段落、および、途中からの読み上げが下記である。

 

Google-To-TextのAI音声(イギリス英語版 — 利用Voiceはen-GB-neural2-D,男性)

WEBによる対話的利用では一括変換ができなかった。そのためここでは、3分割してAI音声を作成した。

part1-最初の約50センテンス

part2-次の約50センテンス

part3-次の約50センテンス

 
ChatGPT4oによる英訳例ーその1
Ryūnosuke Akutagawa
Rashomon

It was one evening at dusk.A servant was waiting for the rain to stop under Rashomon. Apart from this man, there was no one else under the wide gate.
Only a single cricket perched on a large pillar, its vermilion lacquer peeling in places. Since Rashomon was located on Suzaku Avenue, one would expect at least two or three others—wearing city hats or squeezed hats—taking shelter from the rain besides this man. However, there was no one else but him.

The reason was that, in the past two or three years, Kyoto had been struck by successive calamities such as earthquakes, whirlwinds, fires, and famines. Consequently, the desolation of the capital was unparalleled. According to old records, people smashed Buddhist statues and altar fittings and piled up the wood covered with vermilion and gold or silver leaf by the roadside to sell as firewood. Given the state of the city, no one cared to repair Rashomon.
Taking advantage of this ruin, foxes and raccoons made it their home, thieves moved in, and eventually, it became customary to bring unclaimed corpses to this gate and abandon them. As a result, when darkness fell, people avoided coming near the gate due to the creepy atmosphere.

In exchange, many crows gathered from somewhere. During the day, one could see these crows flying in circles around the high ridgepole, cawing as they went. Particularly when the sky above the gate turned red with the evening glow, the crows looked as if sprinkled with sesame seeds, clearly visible. The crows, of course, came to peck at the flesh of the corpses lying on the gate. However, perhaps because it was late today, not a single crow was visible. Only the white spots of crow droppings stuck here and there on the stone steps, which were crumbling in places and had long grass growing from the cracks, could be seen. The servant sat on the top step of the seven-storied stone steps, placing the hem of his washed-out navy-blue kimono on the step, idly gazing at the falling rain while worrying about a large pimple on his right cheek.

Earlier, the author wrote that the servant was waiting for the rain to stop. However, the servant had no particular plans even if the rain stopped. Normally, he would have returned to his master’s house. But a few days ago, his master had dismissed him. As mentioned before, the city of Kyoto was in a state of unprecedented decline.
The fact that this servant was dismissed by his master, for whom he had worked for many years, was a small ripple caused by this decline. Therefore, it would be more accurate to say that the servant, caught in the rain, had nowhere to go and was at a loss, rather than saying he was waiting for the rain to stop.

Furthermore, today’s weather had not a little influence on this Heian era servant’s sentimentality. The rain that began falling in the late afternoon showed no signs of stopping. Thus, the servant, trying to find a way to get through tomorrow’s livelihood—attempting to do the impossible—had been absentmindedly listening to the sound of rain falling on Suzaku Avenue for some time.

The rain enveloped Rashomon, gathering the sound from afar with a loud roar. The evening twilight gradually lowered the sky, making the roof of the gate, with its eaves protruding obliquely, appear to support heavy, dark clouds.

To do the impossible, there was no time to be choosy about means. If he were choosy, he would simply starve to death on the ground under the mud wall or by the roadside. And then he would be brought to this gate and thrown away like a dog.
If he were not choosy—after repeatedly treading the same path of thought, the servant finally reached this conclusion.
However, this “if” was still an “if” indefinitely. Even though the servant acknowledged the need to be unchoosy about means, he still lacked the courage to positively affirm that he had no choice but to become a thief to resolve this “if.”

The servant sneezed loudly and then stood up reluctantly. Kyoto was so chilly that an iron brazier was almost necessary. The wind blew freely between the gate’s pillars along with the evening twilight. The cricket that had perched on the vermilion pillar had already gone somewhere.

The servant hunched his shoulders, raised the collar of his navy kimono over his yellow undergarment, and looked around the gate. He thought if he could find a place free from rain and wind, where he could sleep comfortably without being seen, he would spend the night there. Fortunately, he noticed a wide ladder, also painted in vermilion, leading up to the loft of the gate. If he went up, even if there were people, they would only be corpses. The servant, careful not to let the tachi (long sword) at his waist slip from its scabbard, placed his straw-sandaled foot on the bottom step of the ladder.

A few minutes later, the man was crouching like a cat, holding his breath, on the middle step of the wide ladder leading up to the Rashomon loft, peering up to see what was happening. The faint light from above barely illuminated the man’s right cheek. His cheek, with a red pimple amidst short stubble, caught the light. The servant had assumed from the start that only corpses were up there. However, after climbing two or three steps, he saw someone had lit a fire up there and was moving it around. The murky, yellowish light flickered across the cobweb-covered ceiling, making it immediately clear. Given that someone had lit a fire in Rashomon on this rainy night, they were certainly no ordinary person.

The servant, stealing his way up like a gecko, crawled up the steep ladder to the very top. Flattening his body as much as possible, stretching his neck as far forward as he could, he cautiously peered into the loft.

Inside the loft, as the rumors had it, several corpses were carelessly thrown about. But the light’s reach was narrower than expected, making it impossible to count the bodies. He could vaguely tell that some corpses were naked while others were clothed. Apparently, there were both men and women among them. The corpses lay sprawled across the floor, with their mouths open and arms outstretched, so lifeless that it was hard to believe they had once been alive.
The dim light from the fire cast shadows, making the high parts of their shoulders and chests stand out, rendering the low parts even darker, leaving them eternally silent like dumb figures.

The servant instinctively covered his nose against the stench of the rotting corpses. But the next moment, he forgot about covering his nose. A strong emotion almost entirely stole his sense of smell.

The servant’s eyes, for the first time, spotted a person squatting among the corpses. A short, skinny old woman with white hair like a monkey, wearing a hinoki (cypress) colored kimono. The old woman held a lit pinewood splinter in her right hand, peering intently into the face of one of the corpses. Seeing the long hair, it was probably a woman’s corpse.

Moved by sixty percent fear and forty percent curiosity, the servant temporarily forgot to breathe. Borrowing the words of the old records’ author, he felt as if his body hair stood on end. Then the old woman stuck the pinewood splinter between the floorboards and began pulling out the hair of the corpse she had been staring at, like a monkey picking lice off its young. The hair seemed to come out easily.

As each strand of hair was pulled out, the servant’s fear gradually diminished. Simultaneously, a fierce hatred toward the old woman arose. — To say “toward the old woman” might be misleading. Rather, an increasing aversion to all evil grew by the minute. If someone had now presented the servant with the dilemma he faced under the gate earlier — starving to death or becoming a thief — he would have unhesitatingly chosen to starve. His hatred for evil was now burning fiercely, like the pinewood splinter the old woman had stuck in the floor.

Of course, the servant didn’t understand why the old woman was pulling out the dead woman’s hair. Therefore, he couldn’t logically decide if it was good or bad. However, for the servant, just the act of pulling out a dead person’s hair on this rainy night in Rashomon was already an unforgivable evil. Of course, he had long forgotten his earlier thoughts of becoming a thief.

So, the servant mustered his strength and suddenly jumped up from the ladder. With his hand on his tachi, he strode up to the old woman in large steps. It goes without saying that the old woman was startled.

Upon seeing the servant, she jumped up as if shot by a crossbow.

“Where do you think you’re going?”

The servant blocked the old woman’s path as she stumbled over the corpses in panic, cursing her. Even so, the old woman tried to push past him. The servant pushed her back, preventing her from escaping. For a while, they wrestled silently among the corpses. However, the outcome was evident from the start. The servant eventually grabbed the old woman’s arm and forcibly threw her down. Her arm was as thin as a chicken’s leg, all bones and skin.

“What were you doing? Tell me. If you don’t, this is what you’ll get.”

The servant pushed the old woman away and quickly drew his tachi, thrusting the white steel in front of her eyes.
But the old woman remained silent. Her hands shook uncontrollably, her shoulders heaving as she panted, her eyes bulging out of their sockets in mute defiance. Seeing this, the servant became acutely aware that the old woman’s life was entirely under his control. This awareness quietly cooled the fiery hatred in his heart. What remained was a serene satisfaction and a sense of accomplishment from completing a task. So, looking down at the old woman, the servant softened his voice and said,

“I’m not a police officer from the Kebiishi office. I’m just a traveler who happened to pass by this gate. So I won’t tie you up or anything. All you have to do is tell me what you were doing up here.”

The old woman stared intently at the servant’s face with wide, sharp eyes, like those of a carnivorous bird. Then she moved her almost indistinguishable lips, which were so wrinkled they seemed fused with her nose, as if chewing on something. Her thin throat moved, and the sharp Adam’s apple was visible. Then, from that throat, a voice like a crow’s cawing, broken and raspy, reached the servant’s ears.

“I was pulling out this hair… to make a wig.”

The servant was disappointed by the old woman’s unexpectedly ordinary answer. And simultaneously with the disappointment, his previous hatred, mixed with a cold contempt, seeped back into his heart. This sentiment seemed to reach the old woman. Still holding the long hair taken from the corpse’s head, the old woman mumbled, her voice croaking like a toad.

“Indeed, pulling out dead people’s hair might be bad. But all these dead people here deserve such treatment. That woman whose hair I was pulling out was selling snake meat cut into four-inch pieces as dried fish to the samurai.
If she hadn’t died of disease, she would still be selling it now. Moreover, the dried fish she sold was so tasty that the samurai never missed buying it as a side dish. I don’t think what she did was bad. She did it because she would starve otherwise. So, I don’t think what I was doing was bad either. I have to do this, too, to avoid starving.
This woman, who knew the necessity of my actions, would surely understand what I was doing.”

The old woman roughly said this.

The servant, sheathing his tachi and holding the hilt with his left hand, listened coldly to her story. Of course, with his right hand, he absently touched the large pimple on his cheek. But as he listened, a certain courage grew in his heart. It was the courage that had been missing when he was under the gate earlier. And it was entirely opposite to the courage he had when he climbed the gate and captured the old woman. The servant no longer hesitated between starving and becoming a thief. At that moment, starving to death was so far from his consciousness that he couldn’t even consider it.

“Is that so?”

When the old woman finished her story, the servant mockingly confirmed. Then he took a step forward, suddenly removing his right hand from his pimple and grabbing the old woman’s collar, saying,

“Then you won’t mind if I rob you. I have to do it too, or I’ll starve.”

The servant swiftly tore off the old woman’s kimono. Then, he roughly kicked her, who tried to cling to his legs, onto the corpses. It was barely five steps to the mouth of the ladder. With the hinoki-colored kimono tucked under his arm, the servant descended the steep ladder into the night in a flash.

Shortly after, the old woman, who had been lying motionless among the corpses, slowly rose, groaning and muttering.
Using the remaining firelight, she crawled to the mouth of the ladder. Peering out with her short white hair hanging down, she saw only the pitch-black night outside.

No one knew where the servant had gone.

 
 
 
英訳(その2)
ChatGPT4oによる英語AI音声
ChatGPT4oのサーバーが不調なのか、英語文章が長すぎるためか、英語のAI音声読み上げが現時点ではできていない。
 
Google-To-TextのAI音声(イギリス英語版-利用Voiceはen-UK-neural2-D)
WEBによる対話的利用では一括変換ができなかった。そのためここでは、3分割してAI音声を作成した。
part1

part2

part3

ChatGPT4o用Webブラウザ拡張機能Voice Waveを利用したイギリス英語(男性)AI音声 – Google Voice
 

ChatGPT4oによる英訳例ーその2

One evening, a servant was waiting for the rain to stop under the Rashomon gate. Besides him, there was no one else under the wide gate, except for a cricket perched on a large, partially peeled red pillar. Given that the Rashomon was on Suzaku Avenue, there should have been at least two or three others, wearing ichimegasa hats or eboshi caps, taking shelter from the rain. However, there was no one else but him.

The reason for this was that in the past few years, Kyoto had been struck by disasters such as earthquakes, tornadoes, fires, and famines. As a result, the city had fallen into significant decline. According to historical records, people would smash Buddhist statues and ornaments, pile the timber coated with red or gold leaf by the roadside, and sell it as firewood. Given this state of affairs, no one bothered to repair the Rashomon gate, allowing it to become a haven for foxes and thieves. Eventually, people began to bring unclaimed corpses to the gate and leave them there. Consequently, as darkness fell, everyone avoided the gate, finding it eerie.

In contrast, crows gathered in large numbers from somewhere. During the day, they could be seen flying around the high shibi (decorative ridge-end tiles) of the gate, crying and circling. Particularly when the sky above the gate turned red with the evening glow, the crows appeared clearly like sprinkled sesame seeds. Of course, the crows came to peck at the flesh of the corpses on top of the gate. However, today, perhaps because it was late, not a single crow was visible. Only the white crow droppings were scattered here and there on the crumbling stone steps overgrown with long grass. The servant sat at the top of the seven stone steps, his washed-out navy blue kimono trailing behind him, idly watching the rain while picking at a large pimple on his right cheek.

The author wrote earlier that the servant was waiting for the rain to stop. However, the servant had no particular plan even if the rain stopped. Normally, he would have returned to his master’s house, but his master had dismissed him four or five days ago. As previously mentioned, Kyoto was in a state of decline at that time. The fact that the servant, who had been employed by his master for many years, was now dismissed was a small ripple of this decline. Therefore, it would be more accurate to say that the servant, caught in the rain, had nowhere to go and was at a loss.

Moreover, today’s weather affected the servant’s sentiment. The rain that had started falling since late afternoon showed no sign of letting up. Thus, the servant, contemplating his immediate future and how to survive the next day—trying to find a solution to an unsolvable problem—listened absentmindedly to the sound of the rain falling on Suzaku Avenue.

The rain enveloped the Rashomon, gathering distant sounds. The twilight gradually lowered the sky, and looking up, the roof of the gate, with its protruding eaves, supported heavy, dark clouds.

To deal with an impossible situation, one cannot afford to be choosy about the means. If one were to be selective, one would end up starving to death either under the earthen wall or on the roadside. Then, one’s body would be brought to this gate and discarded like a dog. If one were not selective, the servant’s thoughts, after repeatedly traversing the same path, finally reached this conclusion. However, this “if” remained a mere “if.” Although the servant affirmed that he could not afford to be choosy, he lacked the courage to affirm positively that “there is no choice but to become a thief.”

The servant sneezed loudly and then stood up laboriously. Kyoto, chilled by the evening cold, was now cold enough to need a firebox. The wind blew unreservedly through the pillars of the gate, along with the twilight. The cricket perched on the red-painted pillar had already gone somewhere.

The servant, shrinking his neck and raising his shoulders in the navy blue kimono over a yellow kosode, looked around the gate. He thought that if there was a place where he could spend the night comfortably without fear of the rain and wind or being seen, he would stay there. Fortunately, he noticed a wide red-painted ladder leading up to the gate’s upper story. If there were people up there, they would only be corpses. The servant cautiously placed his foot on the lowest rung of the ladder, ensuring that the sword at his waist did not make a sound.

A few minutes later, a man crouched like a cat on the middle rung of the wide ladder leading to the Rashomon’s upper story, holding his breath and peering up. The faint light from above dimly illuminated his right cheek, covered in short stubble and a large pimple filled with pus. The servant had assumed from the beginning that only corpses would be up there. However, when he climbed two or three rungs, he saw that someone above had lit a fire and was moving it around. This was immediately apparent from the yellow, murky light reflecting off the ceiling, covered in cobwebs. Since someone had lit a fire in this Rashomon on a rainy night, they were certainly no ordinary person.

The servant crept up the steep ladder like a gecko, eventually reaching the top rung. Flattening his body as much as possible, he craned his neck forward and cautiously peered into the upper story.

He saw, as rumored, several corpses lying carelessly, but the range of the fire’s light was narrower than he expected, so he couldn’t tell how many there were. He could vaguely discern that some corpses were naked, while others wore clothes. Men and women seemed to be mixed among them. These corpses, looking more like clay dolls than once-living humans, lay sprawled on the floor, mouths open, hands outstretched. The parts of the bodies illuminated by the fire’s dim light made the shadows of the lower parts even darker, remaining eternally silent like the mute.

The servant instinctively covered his nose against the stench of the rotting corpses. However, the next moment, he forgot about covering his nose, as a powerful emotion almost entirely overwhelmed his sense of smell.

For the first time, the servant saw a living person among the corpses. It was a short, thin, white-haired old woman dressed in a hinoki-bark-colored kimono. She held a lit pinewood splinter in her right hand and was peering intently at one of the corpses’ faces, presumably that of a woman, given the long hair.

Driven by a mix of 60% fear and 40% curiosity, the servant momentarily forgot to breathe. Borrowing the words of an old chronicler, “even his hair stood on end.” The old woman then stuck the pinewood splinter between the floorboards and began to pluck the long hair from the corpse’s head one by one, like a monkey picking fleas from its young. The hair seemed to come out easily.

As the hair was plucked one by one, the servant’s fear gradually diminished. Simultaneously, his intense hatred for the old woman began to grow. To be precise, his aversion to all evil increased by the minute. If someone had brought up the question of whether to starve to death or become a thief, as he had pondered earlier under the gate, he would have chosen to starve without hesitation. Such was his burning hatred for evil, as fierce as the flame in the old woman’s pinewood splinter.

The servant had no idea why the old woman was plucking the corpse’s hair. Thus, he did not know whether to judge it good or evil. However, for him, the mere act of plucking a dead person’s hair on a rainy night in Rashomon was already unforgivable evil. Of course, he had long forgotten that he had considered becoming a thief just moments before.

With this resolve, the servant gathered his strength and leaped from the ladder. Holding his hand on the hilt of his sword, he strode towards the old woman. The old woman was undoubtedly startled.

At the sight of the servant, the old woman sprang up as if shot from a bow.
“Where do you think you’re going?”
The servant blocked the old woman’s way as she tried to flee in a panic, cursing her. The old woman still tried to push past him. The servant, too, tried to stop her. The two grappled in silence among the corpses. However, the outcome was clear from the start. The servant finally grabbed the old woman’s arm and forcibly twisted it, just like a chicken’s leg, all skin and bones.
“What were you doing? Speak! If you don’t, I’ll cut you down!”
The servant thrust his sword’s white steel blade in front of her eyes after shoving her aside. But the old woman remained silent, her hands trembling, her breath ragged, her eyes bulging. Seeing this, the servant realized for the first time that the old woman’s life was entirely in his hands. This realization unexpectedly cooled the burning hatred in his heart, leaving only the calm satisfaction of having completed a task.

Looking down at the old woman, the servant softened his voice a little.
“I am not an official of the Keibii-shi (imperial police). I am merely a traveler who happened to pass by this gate. I have no intention of tying you up or anything like that. Just tell me what you were doing up here.”
The old woman, still wide-eyed, stared intently at the servant’s face. Her hawk-like, sharp eyes with red-tinged eyelids scrutinized him. Then, moving her lips as if chewing something, her thin throat revealing the movement of her pointed Adam’s apple, she croaked out in a voice like a crow’s:
“I was plucking this hair, plucking this hair, to make a wig.”
The servant was disappointed by the old woman’s surprisingly mundane response. As disappointment set in, the previous hatred, now tinged with cold contempt, returned to his heart. Sensing this change, the old woman, still holding the long hair she had plucked from the corpse’s head, mumbled like a croaking toad:
“Indeed, plucking a dead person’s hair may be wrong. But all the dead here are people who deserve such treatment. The woman whose hair I just plucked used to sell dried snake pieces as dried fish to samurai. If she hadn’t died of disease, she would still be selling them. Her dried fish were so tasty that the samurai bought them regularly. I don’t think what she did was wrong. She did it out of necessity to avoid starvation. So, I don’t think what I’m doing is wrong either. I’m doing it out of necessity to avoid starvation. This woman would likely understand my situation and overlook what I’m doing.”
The old woman roughly conveyed this meaning.

The servant listened coldly, holding the sword hilt in his left hand and fiddling with the large, pus-filled pimple on his cheek with his right hand. However, as he listened, a certain courage welled up within him—a courage he lacked when he contemplated starvation or theft earlier. This courage was entirely different from the one he felt when capturing the old woman. The servant was no longer torn between starving to death or becoming a thief. In fact, from his current state of mind, the idea of starving seemed almost absurd, having been pushed entirely out of his consciousness.
“Is that so?”
The servant sarcastically confirmed the old woman’s story. Then, stepping forward, he suddenly released his hand from the pimple and grabbed the old woman’s collar, biting out:
“Then you won’t mind if I rob you. I have to do this to avoid starving.”
The servant quickly stripped the old woman’s kimono and roughly kicked her onto the corpses as she clung to his legs. The ladder was only five steps away. The servant, clutching the stolen hinoki-bark-colored kimono, quickly descended the ladder into the darkness.

Not long after, the old woman, who had lain as if dead among the corpses, raised her naked body. Muttering and groaning, she crawled to the ladder’s edge by the light of the still-burning fire and looked down. Outside, there was nothing but the vast darkness of the night.
No one knew where the servant had gone.

カテゴリー: 文章読み上げ, 生成AIの利用法, 芥川龍之介『羅生門』, 英文校閲, 英語AI音声, 英語学習 | 1件のコメント

AI利用による英語多肢選択式問題の作成例2-ヒアリング問題

AI利用による英語多肢選択式問題の作成例1ではテキスト問題であったが、これをヒアリング問題に変換することもできる。

内容構成
 
1 読み上げ文章の作成およびAI音声変換
英語版ウィキペディアの中の、大谷翔平に関するWEBページhttps://en.wikipedia.org/wiki/Shohei_Ohtaniの内容をChatGPT4oに要約させた。その結果は下記の通りである。

ChatGPT4oによる内容要約のAI音声

Shohei Ohtani, born July 5, 1994, in Oshu, Iwate, Japan, is a professional baseball player recognized for his rare ability to excel as both a pitcher and hitter. Ohtani attended Hanamaki Higashi High School, where he demonstrated his talents and was noted for his 99 mph fastball. He entered Nippon Professional Baseball (NPB) with the Hokkaido Nippon-Ham Fighters in 2013, quickly making an impact with his dual-threat capabilities.

Early Career in Japan
Ohtani’s time in NPB was marked by significant achievements. In his rookie year, he recorded a 3.53 ERA and hit .238. By 2014, he had improved his pitching and batting, achieving a 2.61 ERA and hitting 10 home runs. His 2016 season was particularly outstanding; he posted a 10-4 record with a 1.86 ERA and hit 22 home runs with a .322 average, earning him the Pacific League MVP award.

Transition to MLB
Ohtani transitioned to Major League Baseball (MLB) in 2018, signing with the Los Angeles Angels. His rookie season was notable, despite an elbow injury that limited his pitching. He finished with a .285 batting average, 22 home runs, and a 3.31 ERA in 10 starts, earning the AL Rookie of the Year award. However, Tommy John surgery in 2018 and subsequent injuries in 2019 limited his pitching.

Historic 2021 Season
Ohtani’s 2021 season was historic. He was selected for the All-Star Game as both a pitcher and hitter, a first in MLB history. He finished the season with 46 home runs, 100 RBIs, 26 stolen bases, and a 9-2 record with a 3.18 ERA. His exceptional performance earned him the AL MVP award.

International Success
Ohtani also played a crucial role in international competitions. In the 2023 World Baseball Classic (WBC), he led Japan to victory, showcasing his skills on a global stage. His ability to perform under pressure further solidified his reputation as a top-tier athlete.

Recent Career and Impact
In 2024, Ohtani signed with the Los Angeles Dodgers, continuing his exceptional career. He is celebrated for his unique skill set, which has drawn comparisons to Babe Ruth. Ohtani’s impact on baseball is profound, as he challenges the traditional separation between pitchers and hitters. His success has inspired many and brought significant attention to the sport globally.

Personal and Cultural Impact
Beyond his on-field achievements, Ohtani has become a cultural icon. His humility, work ethic, and exceptional talent have made him a beloved figure in Japan and internationally. His influence extends beyond baseball, contributing to increased interest and viewership of the sport.

Honors and Awards
Ohtani’s list of accolades is extensive. He has been named an MLB All-Star multiple times, won the AL MVP award, and earned numerous Player of the Week and Month honors. His achievements in NPB include the Pacific League MVP and Best Nine awards.

Conclusion
Shohei Ohtani’s career is a testament to his extraordinary talent and versatility. His ability to excel as both a pitcher and hitter is unprecedented in modern baseball. Ohtani continues to break barriers and set new standards, making him one of the most remarkable athletes of his generation.

 
2 多肢選択式問題の作成およびAI音声変換
ChatGPT4oのAI音声読み上げ機能を利用した読み上げ結果は下記の通りである。

  1. 以下では、問題文ごとにAI音声が聞けるようにした。なおChatGPT4oのAI音声読み上げでは選択肢の間にポーズがなく聞き取りにくいが、音声ファイルの編集は手間がかかる作業であるためとりあえず下記ではそのままとした。
  2. SSMLを使えるAI音声合成サービスGoogle-To-Textを利用して、適当に選択肢の間でポーズを持たせたイギリス英語AI音声を参考のために付け加えた。こうした多肢選択式ヒアリング問題の読み上げに関しては、ChatGPT4oとGoogle-To-Textとの間での音声的優劣はないように思われる。Google-To-Textに与えたSSMLのテキストを本ページの最後に参考としてあげておく。
  3. 各問題に対して、関連イラストをChatGPT4oに作成させた。ただしデフォルトのChatGPT4oでは地図のイラストに見られるように各種の間違いがある。しかしここではとりあえずそのままの形とした。
  4. 投手に関しては同一のイラスト画像を左右反転させることで、右投げ投手と左投げ投手のイラストを作成できたが、打者に関してはうまくできなかった。また、ChatGPT4oに様々なプロンプト文で右打者のイラストを描かせようと何回も試みたが、常に右打者しか生成しない。そのため、ここではウィキペディアの中の打者に関する写真をサンプルとして打者のイラスト図を作成させた。

ChatGPT4oのAI音声

Google-To-TextのAI音声

Question 1: What team does Shohei Ohtani currently play on?
A. Los Angeles Dodgers
B. New York Yankees
C. Los Angeles Angels
D. Boston Red Sox

 
 

ChatGPT4oのAI音声

Google-To-TextのAI音声

Question 2: Where is Shohei Ohtani’s hometown?
A. Tokyo
B. Osaka
C. Iwate
D. Fukuoka

 
 

ChatGPT4oのAI音声

Google-To-TextのAI音声

Question 3: What is Shohei Ohtani’s pitching and batting style?
A. Right-handed pitcher, left-handed batter
B. Left-handed pitcher, left-handed batter
C. Right-handed pitcher, right-handed batter
D. Left-handed pitcher, right-handed batter

 
 

ChatGPT4oのAI音声
***

Question 4: What type of player is Shohei Ohtani known for being?
A. Two-way player
B. Pitcher
C. Outfielder
D. Infielder

 
 

ChatGPT4oのAI音声

Google-To-TextのAI音声

Question 5: What league does Shohei Ohtani currently play in?
A. NPB (Nippon Professional Baseball)
B. KBO (Korea Baseball Organization)
C. MLB (Major League Baseball)
D. CPBL (Chinese Professional Baseball League)

 
 
 
 


Question 1: What team does Shohei Ohtani currently play on?
A. Los Angeles Dodgers
B. New York Yankees
C. Los Angeles Angels
D. Boston Red Sox


Question 2: Where is Shohei Ohtani’s hometown?
A. Tokyo
B. Osaka
C. Iwate
D. Fukuoka


Question 3:What is Shohei Ohtani’s pitching and batting style?
A. Right-handed pitcher, left-handed batter
B. Left-handed pitcher, left-handed batter
C. Right-handed pitcher, right-handed batter
D. Left-handed pitcher, right-handed batter


Question 4: What type of player is Shohei Ohtani known for being?
A. Two-way player
B. Pitcher
C. Outfielder
D. Infielder


Question 5: What league does Shohei Ohtani currently play in?
A. NPB (Nippon Professional Baseball)
B. KBO (Korea Baseball Organization)
C. MLB (Major League Baseball)
D. CPBL (Chinese Professional Baseball League)

カテゴリー: ChatGPT4o, イラスト作成, 文章読み上げ, 生成AIの利用法, 英語AI音声, 英語学習, 選択問題作成 | コメントする

AI利用による英語多肢選択式問題の作成例1-多肢選択式テキスト問題

ここでは、無料AI検索サービスのリートンを利用した多肢選択式問題を作成例を紹介する。

<注>リートンでは、無料会員登録することで、2024年5月17日現在で下記の7種類の生成AIを完全に無料で利用できる。

ChatGPT GPT-3.5
GPT-4 Turbo
Claude Claude 2.1
Claude Instant
Google PaLM2
Stable Diffusion XL SDXL, Japanese SDXL
 

リートン社が無料でサービスを提供している理由に関する同社の説明は、下記の通りである。

WRTNは誰もが生成AIを身近に利用できる環境作りとサービスを目指しています。これを具現化するため、将来的には生成AIのプラットフォームを構築し、提供することを計画しています。そのため、現時点では従来のプラットフォームのように 今後もリートンに関しましては完全無料での提供を予定しております。
 
プロンプト文
下記Webページの英文を参考にして、英文の多肢選択式問題を5つ作ってください。なお、その際に正解についてその選択肢がなぜ正解であるのかを、誤った選択肢についてその選択肢がなぜ誤りであるのかを具体的にわかりやすく詳しく日本語で説明してください。

https://en.wikipedia.org/wiki/Shohei_Ohtani

 
 

上記プロンプト文に対するリートンの回答は下記の通りである。ただし見やすくするため、表示は一部変更した。

問題1:What team does Shohei Ohtani currently play for?

A. Los Angeles Dodgers
B. New York Yankees
C. Los Angeles Angels
D. Boston Red Sox

正解: C. Los Angeles Angels
説明: Webページの情報によると、Shohei Ohtaniは現在、メジャーリーグベースボールのLos Angeles Angelsに所属しています。したがって、正解はCの「Los Angeles Angels」です。

A, B, Dの選択肢は誤りです。Webページの情報からは、Ohtaniがこれらのチームに所属しているという記述はありません。

 

問題2:Where is Shohei Ohtani’s hometown?

A. Tokyo
B. Osaka
C. Iwate
D. Fukuoka

正解: C. Iwate
説明: Webページの情報によると、Shohei Ohtaniの出身地は「岩手県水沢市(現:奥州市)」と明記されています。したがって、正解はCの「Iwate」です。

A, B, Dの選択肢は誤りです。Webページの情報からは、Ohtaniが東京、大阪、福岡出身であるという記述はありません。

 

問題3:What is Shohei Ohtani’s pitching and batting style?

A. Right-handed pitcher, left-handed batter
B. Left-handed pitcher, left-handed batter
C. Right-handed pitcher, right-handed batter
D. Left-handed pitcher, right-handed batter

正解: A. Right-handed pitcher, left-handed batter
説明: Webページの情報によると、Shohei Ohtaniの投球・打撃スタイルは「右投左打」と明記されています。したがって、正解はAの「Right-handed pitcher, left-handed batter」です。

B, C, Dの選択肢は誤りです。Webページの情報からは、Ohtaniが左投左打、右投右打、左投右打であるという記述はありません。

 

問題4:What type of player is Shohei Ohtani known as?

A. Two-way player
B. Pitcher
C. Outfielder
D. Infielder

正解: A. Two-way player
説明: Webページの情報によると、Shohei Ohtaniは「投手と指名打者を兼任する二刀流選手」として知られています。したがって、正解はAの「Two-way player」です。

B, C, Dの選択肢は誤りです。Ohtaniは投手と外野手/指名打者を兼任する二刀流選手であり、内野手ではありません。

 

問題5:What league does Shohei Ohtani currently play in?

A. NPB (Nippon Professional Baseball)
B. KBO (Korea Baseball Organization)
C. MLB (Major League Baseball)
D. CPBL (Chinese Professional Baseball League)

正解: C. MLB (Major League Baseball)
説明: Webページの情報によると、Shohei Ohtaniは現在「メジャーリーグベースボール(MLB)のLos Angeles Angelsに所属」していると明記されています。したがって、正解はCの「MLB (Major League Baseball)」です。

A, B, Dの選択肢は誤りです。Webページの情報からは、Ohtaniが日本プロ野球、韓国プロ野球、台湾プロ野球のいずれかのリーグで活躍しているという記述はありません。

 

なお上記の問題文の英語部分のみを抽出して、ChatGPT4oで文法的チェックおよび表現の修正をさせた結果は下記の通りである。ただし見やすくするため、表示は一部変更した。

以下は、文法的チェックおよび必要な訂正を含めた訂正点のリストです:

Question 1:
Original: What team does Shohei Ohtani currently play for?
Correction: What team does Shohei Ohtani currently play on?
Reason: “Play on” is more commonly used when referring to a sports team, though “play for” is also acceptable.

Question 2:
Original: Where is Shohei Ohtani’s hometown?
Correction: No correction needed.
Reason: This question is grammatically correct and clear.

Question 3:
Original: What is Shohei Ohtani’s pitching and batting style?
Correction: No correction needed.
Reason: This question is grammatically correct and clear.

Question 4:
Original: What type of player is Shohei Ohtani known as?
Correction: What type of player is Shohei Ohtani known for being?
Reason: The correction makes the sentence sound more natural and fluent in English.

Question 5:
Original: What league does Shohei Ohtani currently play in?
Correction: No correction needed.
Reason: This question is grammatically correct and clear.

以下は、修正後の多肢選択式問題です:

Question 1: What team does Shohei Ohtani currently play on?
A. Los Angeles Dodgers
B. New York Yankees
C. Los Angeles Angels
D. Boston Red Sox

Question 2: Where is Shohei Ohtani’s hometown?
A. Tokyo
B. Osaka
C. Iwate
D. Fukuoka

Question 3: What is Shohei Ohtani’s pitching and batting style?
A. Right-handed pitcher, left-handed batter
B. Left-handed pitcher, left-handed batter
C. Right-handed pitcher, right-handed batter
D. Left-handed pitcher, right-handed batter

Question 4: What type of player is Shohei Ohtani known for being?
A. Two-way player
B. Pitcher
C. Outfielder
D. Infielder

Question 5: What league does Shohei Ohtani currently play in?
A. NPB (Nippon Professional Baseball)
B. KBO (Korea Baseball Organization)
C. MLB (Major League Baseball)
D. CPBL (Chinese Professional Baseball League)

このように修正を加えることで、文法的に正しく、自然な表現になります。

カテゴリー: 生成AIの利用法, 英語学習, 選択問題作成 | 1件のコメント

ChatGPT4oの情報バイアス ー ChatGPT4o作成イラストに見るAIの「思い込み」

学習データ(training data)の不十分性=偏りに起因するバイアス

生成AIにおける問題の一つは、生成AIの学習(training)に使用されたデータの質や量の不十分性、データの偏りといった点である。テキスト生成でもそうしたことが問題となるが、画像生成ではさらにそのことが大きな問題になるように思われる。

「ChatGPT4oを利用したイラスト作成-芥川龍之介『羅生門』を題材として」の中で紹介したように、平安時代の主人公のイラストを作成させたところ、筆者のプロンプト文作成能力では思い通りのイラスト図を作成させることができなかった。

「芥川龍之介の『羅生門』という小説の主人公である、若い下人のイラストを作成してください。なお時代は平安時代であることを踏まえた衣装にしてください。」というプロンプト文に対するChatGPT4o作成のイラスト図をいくつか作成させた結果は、下記のようなものである。


上記イラストに関するChatGPT4oによる説明文「Here’s the illustration of the young servant from Ryunosuke Akutagawa’s novel “Rashomon,” set in the Heian period. The character is depicted with traditional Heian clothing and the iconic Rashomon gate in the background, capturing the dark and atmospheric tone of the story.」(なぜか英語での説明文となっている。)


ChatGPT4oによる説明文「こちらが芥川龍之介の『羅生門』の主人公である若い下人のイラストです。平安時代の衣装を着ており、物語の暗く絶望的なトーンを反映した表情をしています。背景には平安時代の建築物の要素も含まれています。」(繰り返し作成させたところ、今度は日本語での説明文となった。)



ChatGPT4oによる説明文「Here is the illustration of the young servant from Ryunosuke Akutagawa’s novel “Rashomon,” dressed in Heian period attire. The setting is dark and ominous, reflecting the grim atmosphere of the story. The young servant appears wary and thoughtful, standing in front of the Rashomon gate with a somber expression. The stormy clouds in the background enhance the overall sense of despair and uncertainty.」(さらに繰り返し作成させたところ、今度はまた英語での説明文となった。)

 このように、時代設定を平安時代としているにも関わらず上記のように時代的に合わないイラストが作成されてしまう。

そのようになる理由は、服装に関するChatGPT4oの学習データの中に平安時代の衣装が含まれてはいないことが一因であると推定される。そしてそのことによって、昔の日本人男性が着る和服は羽織・袴スタイルであるという「バイアス」が形成されてしまっているためではないかと考えられる。

 
著作権問題対応(?)に起因するバイアス補正の困難性

 上述のバイアスの存在に対応するために、ChatGPTに対する追加的指示として、平安時代の衣装に関する情報を与えることによって、意図したイラストを作成させようとしたが、簡単には成功できなかった。API利用では可能なのかもしれないが、WEB経由でのオープンな対話的利用ではバイアスへの対応が必ずしもうまくできないと思われる。

バイアス補正のために、ChatGPTに与えた追加のプロンプト文は下記のようなものである。

平安時代の庶民の衣装は、下記WEBにあるような水干(すいかん)であった、と言われている。

風俗博物館「附つけものをつけた水干を着ている放免」日本服飾史home>衣装一覧>平安時代
https://costume.iz2.or.jp/costume/527.html
日本語版ウィキペディア「水干」
https://ja.wikipedia.org/wiki/水干

[写真の出典]日本語版ウィキペディア「水干」にある、投稿者Corpse Reviver氏の画像を基に、そのバックを切り取った写真

平安時代の庶民の衣装に関する上記WEBページの記載を踏まえたイラストにしてください。

上記の指示に従って作成されたイラスト図は下記の通りである。

ChatGPT4oが描くイラスト図は江戸時代の武士風であり、プロンプト文で指定した平安時代の庶民の服装とは似ても似つかない。上記に挙げた日本語版ウィキペディア「水干」にある、投稿者Corpse Reviver氏の画像を修正した写真をもとに修正するように指示しても結果は下記の通りであり、変わっていない。

このようになる理由は、ChatGPT4oのバイアスということだけでは説明がつかない。上記のように基にすべき写真を明示的に与えているにも関わらず、それとはまったく異なる形の服装になる理由は、ChatGPT4oの機能的限界や描画性能の低さを示すというよりは、「著作権問題に配慮し、アップした画像データを基にした画像生成をWEB経由でのオープンな対話的利用ではさせないような設計になっている」ことを示すものとも推定される。
 すなわち元画像とはあえて異なるイラスト図を作成するように設計されているのではないかと思われる。

このことは日本語版ウィキペディア「水干」の中の写真を加工した上記画像をChatGPT4oにアップした上で「水彩画風にしてください」というプロンプト文を与えたにも関わらず、下記のように服装だけでなく、髪型も平安時代とはまったく異なるイラスト図を生成してきたことにも示されている。

なおさらにまた「ChatGPT4oを利用したイラスト作成-芥川龍之介『羅生門』を題材として」の中で紹介した市女笠の説明に関するChatGPT4oの回答に続けて、「市女笠をかぶった平安時代の女性のイラスト図を作成してください。」という追加プロンプト文を与えた結果は下記の通りである。

 上記のイラスト図に対してChatGPT4oは、「こちらが市女笠をかぶった平安時代の女性のイラストです。彼女は優美な着物を着ており、古典的な日本庭園を背景にしています。このイラストが『羅生門』の世界観を視覚的に捉える助けとなれば幸いです。」という説明文を付しているが、まったく的外れである。
 まず第一に、笠はChatGPT4oが最初に作成したイラスト図とは異なり、現代の傘に近い形になっている。次に、市女笠をかぶっている女性は、幅が広い帯をし、派手な簪を付けて髪を結っているなど、どう見ても平安時代の女性の姿・形ではない。(なお、幅が広い帯の着用は江戸時代以降と言われている。)
 これもChatGPT4oの情報バイアスを示すものである。

なお上記のイラスト図に対して、「上記のイラスト図は現代の舞妓さんのようなイラスト図です。また市女笠は最初の説明にあったイラスト図とはまったく異なるものです。訂正してください。」というプロンプト文を与えたが、やはり不適切なままである。

カテゴリー: AIに関する技術論的考察, AIのバイアス, AIの設計問題, ChatGPT4o, 著作権問題対応 | コメントする

ChatGPT4oを利用したイラスト作成(1)-芥川龍之介『羅生門』を題材として

ChatGPT4oは、テキストだけでなく、イラストなどの静止画像も同時に生成できるようになっている。(2024年5月16日16時現在ではOpenAIのサーバーの不調のためか、AI音声読み上げ機能が利用できない。ChatGPT4oの特長の一つである、人間によるものとの区別ができないほど自然なAI音声読み上げについては後日、紹介する。)

例えば、下記のように、芥川龍之介の5作目の短編小説『羅生門』(初出:『帝国文学』1915年11月号、エンディング改稿:『新興文芸叢書第八編 鼻』春陽堂、1918年)に関して、そこに登場する各種の事物に関してイラスト付き解説作成をさせることもできる。

  1. 「芥川龍之介の『羅生門』という小説に登場する羅生門とはどのようなものか教えてください。また羅生門のイラストを作成してください。」というプロンプト文を与えると、下記のような回答が返ってきた。
    芥川龍之介の短編小説『羅生門』は、平安時代の京都を舞台にした物語です。この物語の舞台となる羅生門は、実際に存在した京都の羅城門(羅城門とも書かれる)をモデルにしています。羅城門は、平安京(現在の京都市)の南端に位置し、都の正門として重要な役割を果たしていました。

    物語の中で描かれる羅生門は、荒廃し、崩れかけた状態にあります。天災や戦乱の影響で荒れ果て、人々に見捨てられた場所として描かれています。門の上には死体が放置され、夜になると鬼や盗賊が現れるという噂も立っていました。主人公の下人が羅生門の下で雨宿りをし、その後、門の上で老婆と出会う場面が物語のクライマックスとなります。

    羅生門のイラストについては、以下のように描写できます。

    – 古びた木材や石で作られた大きな門
    – 崩れかけていて、一部が壊れている
    – 雨が降りしきる中、暗く陰鬱な雰囲気
    – 門の上には荒れた屋根があり、その上には古びた藁や瓦が散らばっている
    – 門の周囲には雑草が生い茂り、放置された感じが強調されている
    – 人々が避けるような不気味な雰囲気

    これを基に、イラストを作成します。

    こちらが芥川龍之介の短編小説『羅生門』に登場する羅生門のイラストです。このイラストは、荒廃し、崩れかけた状態の羅生門を描いています。暗く陰鬱な雰囲気で、雨が降りしきる中、放置された不気味な感じが強調されています。

     

    なお上記のように最初に生成されたイラストがモノクロであったので、「上記の羅生門のイラストを、モノクロではなく、カラーにしてください。」というプロンプト文で新たなイラスト図を生成させた結果を下記に二つ紹介する。ChatGPToが「こちらがカラーで描かれた羅生門のイラストです。色彩が追加され、暗く陰鬱な雰囲気がより一層強調されています。荒廃した木材や石、古びた藁や瓦、そして茂った雑草が描かれています。」と記している通り、カラー・イラストの方がより雰囲気が出ている。

    1回目のカラー・イラスト図

    2回目のカラー・イラスト図

    なお「「羅生門は崩れかけていて、一部が壊れている」点、および、「羅生門の上には荒れた屋根があり、その上には古びた藁や瓦が散らばっている」点がもっとはっきりとわかるようなカラーのイラストにしてください。」というように、描写に関するより詳細な追加注文をした方が下記のようにより適切なイラストとなる。

    3回目のカラー・イラスト図

    なお羅生門のモデルとなった羅城門は横幅が9間、すなわち、約16mとかなり横長で2階建ての建物であった。京都駅にある羅城門の復元模型は下記の通りである。

    [図の出典]日本語版ウィキペディア「羅城門」所収の京都駅の復元模型の写真をもとに、背景を切り取った。
    https://ja.wikipedia.org/wiki/羅城門

    この復元模型を参考として、先のイラスト図を修正するようにするプロンプト文を与えた結果は下記の通りである。「円柱が横並びで8本になるようにしてください。」とか、「横幅は9間、すなわち、約16mと、かなり横長の建物です。」といった指示を与えたが残念ながらそうした指示通りのイラスト図には生成されなかった。円柱は6本であるが、先の図よりは横長の建物にはなった。

     

  2. 「芥川龍之介の『羅生門』という小説の主人公である、若い下人のイラストを作成してください。」というプロンプト文を与えると、下記のようなイラストが作成されてきた。

    芥川龍之介『羅生門』の中で、主人公の下人は、「右の頬に大きなニキビがある」とか、山吹色の「汗袗」(かざみ。汗で衣類がべとつかないようにしたり、汗が衣類にじむのを防止するために用いた肌着)の上に、「洗いざらした紺の襖」(襖は「あお」と呼び、平安時代の庶民が来ていた上着)を着ていた、と記載されている。そのため、下記の注に挙げたWEBページを参照して、着物を修正するように指示したが、その通りに修正したイラストを作成させることはできなかった。
     そのようになった理由の一つは、ChatGPT4oの学習(training)データが日本の江戸時代の和服を基本としたものであり、平安時代の衣装に関する学習をしていないことによるものであると思われる。
     さらにまたこのことはChatGPT4oの性能の低さを示すというよりは、「著作権問題に配慮し、アップした画像データを基にした画像生成をWEB経由でのオープンな対話的利用ではさせないような設計になっている」ことを示すものとも推定される。

    <注>襖という上着は、下記WEBにあるような水干(すいかん)と類似の物であった、と言われている。

    風俗博物館「附つけものをつけた水干を着ている放免」日本服飾史home>衣装一覧>平安時代
    https://costume.iz2.or.jp/costume/527.html
    日本語版ウィキペディア「水干」
    https://ja.wikipedia.org/wiki/水干

    [写真の出典]日本語版ウィキペディア「水干」にある、投稿者Corpse Reviver氏の画像を基に、そのバックを切り取った写真
     

  3. 「芥川龍之介の『羅生門』という小説に登場する市女笠とはどのようなものか教えてください。また市女笠のイラストを作成してください。」というプロンプト文を与えると、下記のような回答が返ってきた。
    市女笠(いちめがさ)は、平安時代から江戸時代にかけて、特に女性が使用した日本の伝統的な帽子です。形状は広い円形で、縁が下に垂れています。主に竹や葦で編まれ、布で覆われることが多かったです。この帽子は、雨や日差しから顔を守るために使用されました。

    『羅生門』に登場する市女笠は、物語の時代背景と合わせて、古風で実用的なデザインとなっているでしょう。以下のイラストで市女笠のイメージを具体化します。

    まずはイラストを作成します。

    こちらが市女笠のイラストです。芥川龍之介の『羅生門』に登場する市女笠は、平安時代の雰囲気を持つ伝統的なデザインが特徴です。このイラストが、物語の中で描かれている市女笠のイメージを具体化する一助となれば幸いです。

    なお残念ながら、ChatGPT4oが作成した上記の市女笠のイラスト図は、平安時代の市女笠とはかなり異なっている。別ページでも紹介したが、平安時代の市女笠は「周縁部が大きく深く,肩,背をおおうほどであった」とされている。また市女笠の中央部の突起は、上記のイラストのような布製の半円球型の帽子形状ではなく、菅(スゲ)製の円柱型であった。

    市女笠に関する、より正確な画像を見付けるには、下記に挙げた中では、Microsoft Bingで”a city woman in her ichimegasa hat”を検索させた画像検索が有用である。Googelの画像検索結果はあまり好ましいものではない。

カテゴリー: ChatGPT4o, イラスト作成, 生成AIの利用法, 芥川龍之介『羅生門』 | 1件のコメント