News for hackers. Stuff that matters.
Re:How Alexa knows “peanut butter” is one shopping-list item... by sam0x17 on Tuesday December 18, 2018 @01:17PM (#18708984)
I'm pretty sure you could do this in a standard LALR(1) grammar and give [peanut butter] precedence over [peanut] [butter].
Re:How Alexa knows “peanut butter” is one shopping-list item... by alttab on Tuesday December 18, 2018 @01:23PM (#18709051)
This would require that you have an exhaustive list of priorities typed out in a grammar, for each language. Word embeddings is a more semi-supervised learning. There is no way grammars could cover all the cases in a scalable way.
Re:How Alexa knows “peanut butter” is one shopping-list item... by sam0x17 on Tuesday December 18, 2018 @01:41PM (#18709258)
True, so maybe the best approach is to use machine learning to generate the exhaustive list of priorities based on labeled human speech. Then your end product is something we can understand and tweak, instead of a black-box neural network.
Re:How Alexa knows “peanut butter” is one shopping-list item... by alttab on Tuesday December 18, 2018 @11:35PM (#18713036)
You'd have to human-label that speech. That already won't scale very well, and requires per-language annotation.

Understanding and tweaking it should be done with hyper parameters, not semantic libraries.

Re:How Alexa knows “peanut butter” is one shopping-list item... by anticensor on Tuesday December 18, 2018 @02:49PM (#18709872)
You would need to look ahead recursively as different word orders may be acceptable in a human language. Not all languages are like French.