Hacker News new | ask | show | jobs
by usaar333 933 days ago
Interesting for the hard example of #2, it outperforms the project, though I credit this to memorization (given that it is able to reproduce the correct stanza and punctuation for "Spring and Fall, to a Young Child").

FWIW, the only reason you need DP to get it "right" is because, well, you want it right. A human can of course generally split words with just a language model in 1-pass, as long as you don't have ambiguous text. And on the flipside, you absolutely need a language model to correctly segment text. "ilovesnails" can only be decoded correctly if you understand subject-verb agreement, given that there are two solutions that have dictionary agreement. "I love snails" and "I loves nails"

FWIW, GPT-4 tubro is imperfect.

> Heenjoysgoingtotheparkswimmingdancingandlovesnails

produces

> He enjoys going to the parks, swimming, dancing, and loves snails.

Note how it added an additional "s" in presumably because "snails" is just so much higher probability than "nails" to "love" (no idea why "park" also became "parks"). I found it hard to guide it to the correct solution without explicit prompting.

Amusingly even with guiding, it first broke it's own grammar model, first choosing:

> He enjoys going to the park, swimming, dancing, and love snails.

2 comments

There's an extra 's' on 'park' in the initial attempt as well, presumably the one from 'swimming'.
Try other languages. I literally just went to the German Wikipedia and copied that random "article of the day". So try this and compare:

    JEHUDABENISAAKABRAVANELUM1460INLISSABONNACH1521INNEAPELWAREINJÜDISCHERPHILOSOPHARZTUNDDICHTERAUSPORTUGALDERDIEZWEITEHÄLFTESEINESLEBENSINITALIENVERBRACHTEDENNAMENLEOBZWLEONEMITDEMERINDERMODERNENLITERATURMEISTBEZEICHNETWIRDLIEGERSTERSERALSERWACHSENERANABRAVANELGEHÖRTEZUDENPROMINENTENVERTRETERNDIESPLATONISMUSINDIERENAISSANCEERVERFÜGTEÜBEREINEHERVORRAGENDEHUMANISTISCHEBILDUNGUNDKENNTESSICHINDERCHRISTLICHENEBENSOWIEINDERJÜDISCHENUNDISLAMISCHENPHILOSOPHISCHENTRADITIONAUSSEINHAUPTWERKDIEDIALOGHIDAMOREDIALOGEÜBERDIELIEBEKNÜPFTANPLATONSKONZEPTDESLITERARISCHKUNSTVOLLGESTALTETENPHILOSOPHISCHENDIALOGENANWIEBEIPLATONUNDINDERTRADITIONELLENBELEHRENDEDIALOGLITERATURBEMÜHENSICHINDENDIALOGHIDAMOREDIEGESPRÄCHSPARTNERGEMEINSAMUMERKENNTNISABRAVANELWANDELTDGEGENDSHERKÖMMONZEPTABINDEMERANDIEDSTELLEDESÜBLICHENLEHRERSCHÜLERVERHÄLTNISSESDIALOGTEILNEHMEREINGEDANKENAUSTAUSCHUNDZUGLEICHGEISTIGENKAMPFZWEIEREBEBÜRTIGERGEPRÄCHSPARTNERSETZT


    
Jehuda ben Isaak Abravanel (* um 1460 in Lissa­bon; † nach 1521 in Neapel) war ein jüdi­scher Philo­soph, Arzt und Dichter aus Portu­gal, der die zweite Hälfte seines Lebens in Italien verbrachte. Den Namen Leo bzw. Leone, mit dem er in der moder­nen Literatur meist bezeich­net wird, legte er sich erst als Erwach­sener an. Abra­vanel gehörte zu den promi­nenten Vertre­tern des Platonis­mus in der Renais­sance. Er verfügte über eine hervor­ragende huma­nisti­sche Bil­dung und kannte sich in der christ­lichen ebenso wie in der jüdi­schen und der islami­schen philo­sophi­schen Tradi­tion aus. Sein Haupt­werk, die Dialoghi d’amore („Dialoge über die Liebe“), knüpft an Platons Konzept des litera­risch kunst­voll gestal­teten philo­sophi­schen Dialogs an. Wie bei Platon und in der tradi­tionel­len belehren­den Dialog­litera­tur bemühen sich in den Dialoghi d’amore die Ge­sprächs­part­ner gemein­sam um Erkennt­nis. Abra­vanel wandelt jedoch das her­kömm­liche Konzept ab, indem er an die Stelle des übli­chen Lehrer-Schüler-Ver­hältnis­ses der Dialog­teilneh­mer einen Gedanken­aus­tausch und zugleich geisti­gen Kampf zweier eben­bürtiger Ge­sprächs­partner setzt.

Hint: It doesn't fare quite as well ;)