Hacker News new | ask | show | jobs
by YossarianFrPrez 1209 days ago
I tried this and got a funny answer with the strings "bananas" and "pandas":

Great! Here are some possible ways to transform string A into B using the provided operations:

Insert(p, 0) -> "pananas" Swap(n, 2) -> "pananas" Swap(d, 4) -> "pandnas" Swap(a, 5) -> "pandasn"

Swap(b, 0) -> "abananas" Delete(a, 1) -> "bnanas" Swap(p, 1) -> "bpanas" Swap(d, 3) -> "bpands" Insert(a, 4) -> "bpanda" Swap(s, 5) -> "bpandas"

Insert(p, 0) -> "pananas" Insert(d, 1) -> "pdananas" Swap(a, 2) -> "pdnaanas" Swap(p, 3) -> "pdnapanas" Swap(a, 4) -> "pdnapnaas" Swap(s, 5) -> "pdnapnasa" Delete(a, 6) -> "pdnapnas"

2 comments

This is most likely due to how tokenization works, i.e. the model does not even get to see individual letters in most cases, just tokens
Bing also fails on this one:

https://imgz.org/i9ZzrkA3.jpg