Alles wat Jan bezighoudt, interesseert en irriteert... en ook een beetje onzin...

Posts tonen met het label chatGPT. Alle posts tonen
Posts tonen met het label chatGPT. Alle posts tonen

dinsdag, mei 23, 2023

Making a rap song, Eminem-style, but sweet and Christian, with chatGPT

ChatGPT is one of several LLMs currently being built. The possibilities seem almost endless. For now, they are certainly good fun to play with. 

Just imagine that in a year or two or three, you can ask your device whether your watch, phone, speaker or laptop: when would be the best time to take some time off? Which part of Europe have I not visited? What is there to see and do? What would that trip by car cost me if I want to rent a good car and sleep over in hotels rated 8.0/10 or better, and, oh, that sounds reasonable, book this trip for me, please.

For now, we have to do more things manually, but that's fine too.

I goofed around with chatGPT and asked it to write a letter for me, as if I am a Jehovah's Witness who wants to tell about my faith. Also, keep it brief.

Hoe zou een brief van een Jehovah's Getuigen er uit zien, welke mij in een kantje tekst probeert te overtuigen van zijn geloof? 

The result was very passable as "real":




Next, I wanted to expand on this letter a little bit, so I asked chatGPT to use 2 or 3 Bible scriptures, instead of the 1.  It could indeed:

Kun je deze brief herschrijven met 2 of 3 Bijbelteksten er in verwerkt in plaats van eentje?



If you start out right away with asking what you want to get done, chatGPT will often be missing the mark. But by introducing your real question by some simpler queries first, you force chatGPT into a certain "mindset." 

Now that we have done so, we come to our true purpose, I want a rap song, Eminem style, but with a very neat Christian message, is this at all possible?

kun je deze laatste tekst omzetten in een engelse rap tekst in de stijl van Eminem ?


The result was far better than I expected:



For fun and kicks, here is the rap song in full:


(Verse 1)

Yo, this letter I write, hope it finds you alright, 

My name is [Name], a Witness of the Light,

We're living in times, so unsure, so confusing,

But I got the Bible, for guidance, I'm choosing.


God is love, it's stated, no debate (1 John 4:8),

A message so strong, no room for hate,

In this world of chaos, where love's in decline,

This reminder of love, so divine, it's a sign.


(Chorus)

We got hope, we got faith, in the words that we read,

In the good book, the Bible, is where we feed,

Jehovah's Witnesses, we stand tall and proud,

Voicing His message, humble but loud.


(Verse 2)

Look to Revelation, twenty-one, three and four,

A promise of a paradise, pain no more,

No death, no crying, the old world's past,

A new Earth's coming, peace at last.


Tryna walk like Jesus, in our daily strides,

No sin in his steps, truth in his guides (1 Peter 2:22),

Striving to reflect his compassion and humility,

In our actions, interactions, not just ability.


(Chorus)

We got hope, we got faith, in the words that we read,

In the good book, the Bible, is where we feed,

Jehovah's Witnesses, we stand tall and proud,

Voicing His message, humble but loud.


(Outro)

I invite you, come learn, see what it means to you,

Bible studies for free, meetings online too,

I respect your beliefs, and I hope you do mine,

Let's have a convo, in His love, let's align.


So thank you for your time, hope to hear back soon,

Under the same sky, beneath the same moon,

Signin' off now, but before I go,

Remember, in His love, we grow.


(End)

This is [Your Name], a Jehovah's Witness,

In a world full of noise, find the quiet bliss,

His word, His love, His promise so vast,

In His name, we move forward, not tied to the past.


What was your most fun project with chatGPT? Please let me know via the comment box. Also, If you had fun reading this, why not subscribe to my RSS feed?

maandag, mei 15, 2023

Translating Akkadian clay tablet with chatGPT?



 

Translating old clay tablet by using chatGPT.

 

You might have heard how I asked chatGPT to pose as a Jehovah’s Witness, write a “witnessing letter” with 2 or 3 bible scriptures in it, and then translate that letter into an English rap song, Eminem style.  Or you might have missed that news. My point is, I like to play with AI’s. 

 

I’m increasingly stupefied by how much AI models like OpenAI’s chatGPTGoogle’s BARD, and Facebooks LLaMMa and others are capable of. 

 

An Old Karen in a Museum.

I feel the word “Karen” as a derogatory name for a complaining lady is a recent invention. If I had known this name in 2008, I would have used it to describe an elderly lady who ruined my visit to the British Museum. 

You see, I was visiting the museum specifically to see the “Babylon: Myth and Reality” exhibition. In this exhibition, I came upon a clay tablet that was on loan from some other museum or private collector.  

Until now, I haven’t been able to find this clay tablet again. The reason is that I didn’t take a photograph of this tablet and the label that no doubt would explain its providence and current owner, is because a Karen saw me taking photographs and told me to stop. She might have seen this No Flash sign:

 She probably mistook this sign for this No Photographs sign:


Me, being the shy 20 - something year old nerd that I was, didn’t explain to her the difference between these signs. I also didn’t laugh at her. I put my camera away and refocused on the clay tablet in front of me. 

Silly, stupid, me. 


A clay tablet that supports an unlikely Bible account 


You see, that particular tablet, it couldn’t have been bigger than my hand, was a very interesting one. It happens to pertain to the Biblical account of King Manasseh of Judah (716–662 B.C.E.)

 

The Bible, in the second book of Chronicles 33:10, 11 tells us:

 

10 Jehovah kept speaking to Manasseh and his people, but they paid no attention. 

11 So Jehovah brought against them the army chiefs of the king of Assyria, and they captured Manasseh with hooks and bound him with two copper fetters and took him to Babylon. 

 

The city Babylon was at this time also under Assyrian control. The clay tablet that I mentioned earlier is only making a reference to Manasseh. The tablet was written, or more likely, dictated, by an Assyrian prince who happens to be in jail with Manasseh in an adjacent cell.  And this prince is complaining, because he is still in prison while this rebellious has-been king that was in the cell next to his, has now been released from prison and on his way back to his country, back to king-ing again! 


Why is this so interesting to me? 


Second Chronicles chapter 33 continues:

 

12 In his distress, he begged Jehovah his God for favor and kept humbling himself greatly before the God of his forefathers.

13 He kept praying to Him, and He was moved by his entreaty and heard his request for favor, and He restored him to Jerusalem to his kingship. Then Manasseh came to know that Jehovah is the true God.

  

So King Manasseh does a remarkable thing while in prison! He feels genuinely sorry for his sins and repents. He keeps praying to his God, till he is restored as king in Judah. 


Assyrians were never that lenient. Never. But this time, they were. And there is evidence in that clay tablet. If only I could find that tablet again.

 

ChatGPT to the rescue?

 

There are multiple archives and search engines that make an effort in indexing all known cuneiform clay tablets from long-gone civilizations like Mitanni, Assyria, Babylonia, Elam and so forth. 


I tried my luck with the Cuneiform Digital Library Initiative.


Problem number one. When I Search for “Manasseh” I get 0 hits


So, apparently many tablets have been digitized, there is either no digital translation, or it might be copyrighted and therefore not on this open platform? Many scholars, when doing their own research don't re-translate an ancient text, but rather rely on standard works like ANET or the much cheaper ANAT


I, however, since there are apparently no translations available here, need to find the Akkadian (the scientific name of the Assyrian and Babylonian language) cuneiform spelling for “Manasseh” in order to search here.


I try to guide chatGPT into the right state of mind, by starting easy: 

 

Do you have access to catalogues of ancient clay tablets from Babylonia, Assyria and Mitanni?



Too bad ๐Ÿ˜ข. No direct access to catalogues. 

 

That means I will need to go and search manually. 

 

Can you speculate on how the biblical name of king Manasseh of Judah would have been written in Babylonian Cuneiform?




Okay, so chatGPT comes up with the variant spelling “๐’ˆจ๐’‚—๐’€€๐’ˆพ (ma-na-si-i or ma-an-si-i)”. When I search on Wikipedia, I find another spelling: ๐’ˆจ๐’ˆพ๐’‹›๐’„ฟ Menasรฎ [me-na-si-i]

So, let’s find out if chatGPT finds this also a plausible translation?

 

I found a source that gave the name as  ๐’ˆจ๐’ˆพ๐’‹›๐’„ฟ Menasรฎ [me-na-si-i]; Does that sound plausible to you ?




I’ve written before about the fact that you should always check whatever information chatGPT comes up with because it is known to “hallucinate”.

 So, I check the one Akkadian (actualy Sumerian, but the Akkadian language were re-used Sumerian symbols, sometimes with the same meaning but almost always with a entirely different pronunciation) that I happen to remember:

 

can you tell me the meaning of the akkadian word Lugal ?



As someone on Hacker News pointed out, I made a mistake in framing this question because the word "Lugal" is a Sumerian word, not an Akkadian, but I digress. 


Continuing our search, I now have three variant spellings of Manasseh to throw at CDLI: 

  1. me-na-si-i  
  2. ma-na-si-i
  3. ma-an-si-i

 

By using these variants, I find a lot of hits. Me-na-si-I, the first spelling variant, gives me 4 hits. The very first one is a “RINAP 4 Esarhaddon 001, ex. 001 (P422293)” prism from King Esarhaddon, a known contemporary of Manasseh of Juda. Unfortunately, a translation is lacking. 

 

Let’s find out if chatGPT can do not just words, but whole sentences:



Holy Moly ๐Ÿ˜ฑ 


It can translate not just words but whole Akkadian texts as well?!?


Too bad this is not the King Manasseh of Judah, but instead "Menasรฎ of Assur". 


I don’t have time now to go through all these clay tablets and translate them with chatGPT, but I’m dreaming of a plugin that automatically translates and publishes the translation of ancient cuneiform clay tablets.

These draft translations can then be proofread by actual translators who are knowledgable in Akkadian, Sumerian, Elamite and all the other long-dead languages that once wrote in cuneiform. Imagine a chatGPT version 5 or 6 that has been trained on these refined and checked translations. One day, we could potentially outsource most if not all translating to machines and we, humans, could do the much more fun work of reading and commenting on these long silent texts.

Keep dreaming kids, and keep building. 

 

PS: After reading some comments on my beloved HN, I changed the text around "Lugal" a bit and added the next to last paragraph. In no way do I believe chatGPT can today translate Akkadian (or other texts with small training sets) correctly, but I hope that in a future day, it will be.