Live data from Hacker News

How Alexa knows “peanut butter” is one shopping-list item, not two

developer.amazon.com

41–50 of 147 posts

Re: How Alexa knows “peanut butter” is one shopping-list item, not two

#41
post #5

The German language is superior in this regard because there it would we either "peanut, butter" or "peanutbutter".

How is this relevant? Peanut butter isn't spoken like "peanut, butter" it's spoken like "peanutbutter".

It depends. If I'm enunciating clearly as I tend to do when I dictate to voice assistants, I'm going to tend to tend to distinctly pronounce the "t" at the end of peanut and the "b" at the beginning of butter which tends to produce something of a pause between the two words.

Re: How Alexa knows “peanut butter” is one shopping-list item, not two

#42
post #17

Earlier quoted context omitted.

I'd say it was probably worse in this respect, doesn't German have a lot more of these "compound" words that would need to be parsed in this way?

Exactly, car insurance is much better than Kraftfahrzeug-Haftpflichtversicherung.

I know there's still a difference in length, but don't let English orthography fool you, English likes big compounds too: "high voltage electricity grid systems engineer team supervisor" is structurally the same as the unspaced German monstrous compounds. (I.e. the real difference between English and German in this area is just a matter of orthography and not actual linguistic structure.)

Re: How Alexa knows “peanut butter” is one shopping-list item, not two

#43
post #2

Because who orders a single peanut.

A better example is "coffee cream" (Google fails on this one)

Well, what is it?

I imagine lists with post-specifiers are near impossible to parse too:

    Coffee, instant
    Custard, powdered
    Sugar
Bit contrived, but still.

Re: How Alexa knows “peanut butter” is one shopping-list item, not two

#44

Earlier quoted context omitted.

A human really wouldn't. It's the same thing as telling the difference between black bird and blackbird in running speech; peanut butter may be spelled as two words, but it's spoken as a single thing. If the concept was new enough that you were consciously talking about a type of butter made from (of all things) peanuts , it would be a black bird vocal entity rather than a blackbird one.

It's true that we do alter our speech to provide context clues, it is also true that without them we're _still_ capable of piecing them together. If someone says in a unnaturally drawn out way "I like peanut butter sandwhiches" then I will have no problem detecting the situation and then re-parsing it correctly.

The space is irrelevant. Consider the sentences:

The black bird ate seeds.

The blackbird flew at mach 3.

Your brain thinks of these two words completely differently and it's only through conscious effort that you think of them together. They are different words even though they sound and are spelled the same, regardless of the space.

A better example I think is "bear feet" vs "bare feet"

Re: How Alexa knows “peanut butter” is one shopping-list item, not two

#45
post #16

This, yet again shows just how far the computer science is from real natural language processing, despite of all "AI" companies' claims. Unless they have all and everything hardcoded, even such natural thing are impossible to process for the "natural" language processing programs. All cloud "AI" and "natural" language processing services should really be called "lots and lots of hardcoded stuff language processing"

Alexa's shopping list definitely has room for improvement if it wants to be more natural. If I want to add bread and peanut butter to my shopping list, I need to say "Alexa, add peanut butter to my shopping list Alexa, add bread to my shopping list". If I say "Alexa, add bread and peanut butter to my shopping list", it adds a single item called "bread and peanut butter"

Re: How Alexa knows “peanut butter” is one shopping-list item, not two

#46
post #13

This only a surprising thing because a human would parse the waveform as two words and then back into a single concept. A computer could parse it as a single concept directly or in syllable lengthed chunks to be reconfigured however.

A human really wouldn't. It's the same thing as telling the difference between black bird and blackbird in running speech; peanut butter may be spelled as two words, but it's spoken as a single thing. If the concept was new enough that you were consciously talking about a type of butter made from (of all things) peanuts , it would be a black bird vocal entity rather than a blackbird one.

You're still talking about words, but the issue is waveform sound. An english speaker would hear "black bird" and use rhythm and context clues to parse it into words and then into the appropriate idea. A non-english speaker might hear something like "blekabirt" as the waveform sound is interpreted through their particular linguistic habits, then it would be rejected as a non-word sound

Re: How Alexa knows “peanut butter” is one shopping-list item, not two

#47

Earlier quoted context omitted.

It's true that we do alter our speech to provide context clues, it is also true that without them we're _still_ capable of piecing them together. If someone says in a unnaturally drawn out way "I like peanut butter sandwhiches" then I will have no problem detecting the situation and then re-parsing it correctly.

The space is irrelevant. Consider the sentences: The black bird ate seeds. The blackbird flew at mach 3. Your brain thinks of these two words completely differently and it's only through conscious effort that you think of them together. They are different words even though they sound and are spelled the same, regardless of the space. A better example I think is "bear feet" vs "bare feet"

"Blackbird" refers to several species of actual bird, not just the plane. "The black bird ate seeds" and "The blackbird ate seeds" are both reasonable sentences, and they do potentially sound different.
Post reply on HN