News for hackers. Stuff that matters.
Re:How Alexa knows “peanut butter” is one shopping-list item... by jchw on Tuesday December 18, 2018 @01:35PM (#18709186)
Sentences spoken aloud don't have commas.
Re:How Alexa knows “peanut butter” is one shopping-list item... by coldtea on Tuesday December 18, 2018 @05:03PM (#18711003)
You don't need commas to do that in text parsing either. Newlines, for example, will do.

When spoken, a shopping list is not a sentence. There's a small pause and/or different emphasis on the start of each item that can be learned (humans, for one, can discern it).

"Eggs milk peanut-butter" sounds different than "Eggs milk peanut butter".

(Besides it can easily learn that peanut, singular, is not a thing people order: it's either "peanuts" or "peanut-butter" etc).

Re:How Alexa knows “peanut butter” is one shopping-list item... by halflings on Tuesday December 18, 2018 @08:03PM (#18712124)
You're basically saying that they should build a speech recognition system that links words that should belong together with a hyphen... great then: that's exactly what this article is about.
Re:How Alexa knows “peanut butter” is one shopping-list item... by Dylan16807 on Tuesday December 18, 2018 @09:56PM (#18712645)
No. They're not saying anything about "words that should belong together". They're saying two things:

1) There is a pronunciation difference between one item with two words, and two items with one word each.

2) You can also use per-word information here, because "peanut" is not something that goes on shopping lists.

Re:How Alexa knows “peanut butter” is one shopping-list item... by coldtea on Wednesday December 19, 2018 @04:50AM (#18714491)
No, I'm just using a hyphen on my "transcription" to show the two cases are spoken differently.
Re:How Alexa knows “peanut butter” is one shopping-list item... by cr0sh on Tuesday December 18, 2018 @05:27PM (#18711189)
> "Eggs milk peanut-butter" sounds different than "Eggs milk peanut butter"

True, but I've never went to the grocery store to buy a singular peanut.

I've bought a bag of peanuts, but not just one peanut.

Re:How Alexa knows “peanut butter” is one shopping-list item... by cecilpl2 on Tuesday December 18, 2018 @05:38PM (#18711258)
Eggs milk avocado-oil

Eggs milk cheese-buns

Eggs milk chicken-salad

Re:How Alexa knows “peanut butter” is one shopping-list item... by avip on Tuesday December 18, 2018 @05:51PM (#18711354)

  pudding pudding pudding applesauce
  pudding pudding pudding applesauce
  pudding pudding pudding applesauce
  applesauce applesauce applesauce
Re:How Alexa knows “peanut butter” is one shopping-list item... by coldtea on Wednesday December 19, 2018 @04:50AM (#18714495)
Which I cover directly below.
Re:How Alexa knows “peanut butter” is one shopping-list item... by gok on Tuesday December 18, 2018 @02:50PM (#18709883)
Or pauses between words
Re:How Alexa knows “peanut butter” is one shopping-list item... by sdinsn on Tuesday December 18, 2018 @02:06PM (#18709509)
> In text parsing
Re:How Alexa knows “peanut butter” is one shopping-list item... by jchw on Tuesday December 18, 2018 @02:10PM (#18709559)
Are we comparing this to what Alexa is doing or not?
Re:How Alexa knows “peanut butter” is one shopping-list item... by 8bitsrule on Tuesday December 18, 2018 @05:27PM (#18711190)
OK, bullets then. At any rate ... a one-line of code solution is a flimsy excuse for a product placement.
Re:How Alexa knows “peanut butter” is one shopping-list item... by jchw on Tuesday December 18, 2018 @05:48PM (#18711336)
I don't understand. You realize the speech recognition algorithm gives you raw words with no punctuation, right?
Re:How Alexa knows “peanut butter” is one shopping-list item... by Analog24 on Tuesday December 18, 2018 @06:00PM (#18711403)
What single line of code could solve this problem?
Re:How Alexa knows “peanut butter” is one shopping-list item... by bitwize on Tuesday December 18, 2018 @01:43PM (#18709271)
Yes, they do. There's evidence to suggest that punctuation marks were devised as pronunciation guides, indicating how to inflect and when to pause, rather than syntactic markers in their own right. Commas in particular indicate a distinctive inflection and short pause in speaking; such would be detectable by Alexa especially if it uses a neural net or similar to analyze human speech.
Re:How Alexa knows “peanut butter” is one shopping-list item... by jchw on Tuesday December 18, 2018 @02:09PM (#18709550)
That was not the point of what I said at all. It Could interpret the vocal cues, yes. As far as I know this is still not a solved problem for speech to text, and results going the other way and trying to guess punctuation is still more reliable.

Back to what I really was getting at: I'm pretty sure the person I replied to was suggesting Alexa could just split(',') and call it a day. With text, yes. With voices this would be irritatingly unreliable. Everyone talks differently and sometimes people stumble weirdly. I am certain humans use a mix of vocal cues and interpretation to place the commas in their heads.

Re:How Alexa knows “peanut butter” is one shopping-list item... by NicoJuicy on Tuesday December 18, 2018 @02:30PM (#18709729)
No, i'm suggesting:

- ignore the comma, point and space as delimiter and compare the values / entities against a dictionary for neighbouring words.

- don't ignore the comma and compare the values against a dictionary.

Put a priority ( or in machine learning terms: a classifier) on both outcomes, because comma is not reliable in spoken language. So that it would interprit peanuts butter as [peanuts, butter] and peanut butter as [peanut butter].

PS. Now i hope that text-to-speech translates spoken: peanuts correctly to [peanuts] and not [peanut], because that would fail.

PS2. The article itselve doesn't mention the punctuation problem

Re:How Alexa knows “peanut butter” is one shopping-list item... by jchw on Tuesday December 18, 2018 @02:42PM (#18709806)
>PS2. The article itselve doesn't mention the punctuation problem

It doesn't go into detail but it does seem to mention it.

>Off-the-shelf broad parsers are intended to detect coordination structures, but they are often trained on written text with correct punctuation. Automatic speech recognition (ASR) outputs, by contrast, often lack punctuation, and spoken language has different syntactic patterns than written language.

Re:How Alexa knows “peanut butter” is one shopping-list item... by coldtea on Tuesday December 18, 2018 @05:07PM (#18711033)
>As far as I know this is still not a solved problem for speech to text

Understanding pauses/inflection changes doesn't have to be a "solved problem" to work for cases such as discerning common shopping list style items.

With voices this would be irritatingly unreliable. Everyone talks differently and sometimes people stumble weirdly.

That's an argument against discerning "milk" from "silk" or "coke" from "cork", but that's still managed satisfactorily enough.

Re:How Alexa knows “peanut butter” is one shopping-list item... by jchw on Tuesday December 18, 2018 @05:43PM (#18711298)
>Understanding pauses/inflection changes doesn't have to be a "solved problem" to work for cases such as discerning common shopping list style items.

Okay... But Alexa isn't just shopping lists. You only know you are dealing with a shopping list after parsing the text.

Even if you did go back, is the narrower use case any more solved than the general one? Guessing with text alone turns out to be fairly accurate and so even if you could do this decently, it would have to be notably better to be worth the trouble.

>That's an argument against discerning "milk" from "silk" or "coke" from "cork", but that's still managed satisfactorily enough.

Irrelevant to this though, considering that problem has mostly been solved at this juncture.