question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Possible to have a generic slot?

See original GitHub issue

Hi, I’m very interested in using this package for a Flutter app I’m working on.

I’m wondering if it is possible to have a slot that works somewhat like a wildcard. For example, a “food” slot is naturally difficult to make as listing all foods in a slot isn’t really feasible.

I tried to use the built-in $pv.Alphabetic slot but that seems to pick up individual letters instead of whole words.

Some examples to demonstrate exactly what I’d like to do:

How many calories are in $pv.TwoDigitInteger:quantity servings of $food:food? What pairs well with $food:food_a and $food:food_b?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
dbartlecommented, Jul 10, 2021

I don’t know if I’m understanding your suggestion fully, are you suggesting adding every entry of a database into a food slot? I also considered this after I posted this issue, and it could probably be done.

Yes. You can import and export in CSV format. We had a previous intern who used this approach to import thousands of descriptions of Emoji into a context. It required a little clean up effort to map some things like “8ball” to “eight ball” but overall worked quite well.

being able to recognize multidigit numbers would also be something I would likely need.

There’s a sharp difference between things like alphanumerics, dates, multi-digit numbers and more broad/fuzzy notions like food or people’s names.

Multi-digit numbers, dates, things like that are achievable and if you specifically want that, I suggest opening a feature request issue and we can gauge if it merits implementation on our end based on the traction of the issue. We currently also have one open for dates: https://github.com/Picovoice/rhino/issues/70.

If rhino isn’t going in this direction, is there any chance this is implemented in another SDK in the future?

Can’t tell you anything specifically on the roadmap but both Rhino and our generalized STT products are under active development, so there will be more possibilities in the future.

0reactions
AlexHartfordcommented, Jul 10, 2021

Thanks! I will give that a shot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Generic Slots - Google Groups
Thought for the Day: Why do we have generic functions but not generic slots? (slot-value (plate1 plate2) 'capacitance) => 10. hmm... order dependency?...
Read more >
Amazon Alexa - How to create Generic Slot - Stack Overflow
I'm asking because I have a small custom slot with 10 choices and am able to recognize a very wide range of content...
Read more >
Generic Slot and Pole Number Combinations for Novel ...
Generic Slot and Pole Number Combinations for Novel Modular Permanent Magnet Dual 3-Phase Machines With Redundant Teeth.
Read more >
Thread: Slot connected to a generic signal - Qt Centre Forum
The way signal/slot works is that the sender object knows a list of receivers and when the signal is "emitted", the code iterates...
Read more >
Create and Edit Custom Slot Types | Alexa Skills Kit
Each value in a custom slot type can have a unique identifier and a set synonyms. This lets you tie multiple possible utterances...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found