KnowBrainer Speech Recognition
Decrease font size
Increase font size
Topic Title: Vocola lists of lists
Topic Summary:
Created On: 04/02/2021 06:46 PM
Status: Post and Reply
Linear : Threading : Single : Branch
Keyword
 04/02/2021 06:46 PM
User is offline View Users Profile Print this message

Author Icon
alexander
Top-Tier Member

Posts: 215
Joined: 07/31/2016

Mark,

is there any chance you could be adding something akin to list of lists.  it would definitely come in handy in organizing and potentially collapsing some Vocola grammars.

I think this has been brought up before and I see

Vocola 2 - Wish List

  • Allow variables in alternative sets (e.g. <direction> | foo | bar)
I'm not sure if this is quite the same thing as what is available in Vocola 3, but if so it would be great to have it in Vocola to as well:
under rich alternatives:
A variable, range, or alternative set may appear as an alternative. For example
<letterKey> := a|b|c|d|e|f|g|h|i|j|k|l|m|n|o|p|q|r|s|t|u|v|w|x|y|z;
<key> := <letterKey> | (Space|Space Bar)=" " | 0..9;

Here the variable <key> is defined to have all the members of the variable <letterKey>, the range 0..9, and the alternative set (Space|Space Bar).

 

Many thanks.

 04/08/2021 05:28 PM
User is offline View Users Profile Print this message

Author Icon
zmcgohan
Junior Member

Posts: 32
Joined: 08/02/2019

Please^100 (also been dreaming of this for a while)

Splitting up my large lists into sub lists would be incredibly flexible and helpful.



 04/10/2021 10:22 PM
User is offline View Users Profile Print this message

Author Icon
alexander
Top-Tier Member

Posts: 215
Joined: 07/31/2016

just posting as reference. Probably need to modify these definitions or handling here
https://github.com/mdbridge/Vocola-2/blob/master/src/exec/vcl2py/parse.py#L63

https://github.com/mdbridge/Vocola-2/blob/master/src/exec/vcl2py/parse.py#L568

Mark, is this code generated from a lex definition or is the parser hand coded?



 04/13/2021 11:21 AM
User is offline View Users Profile Print this message

Author Icon
quintijn
Top-Tier Member

Posts: 220
Joined: 07/28/2014

Active work is only been done on a python 3 release, which is coming closer, although it takes a lot of time. For various reasons.

You could create an "issue" on https://github.com/dictation-toolbox/Vocola2/issues, with above question. If you are not easy with working on github, I can do this for you.

I think no work will be done on the python 2 releases of Natlink, Unimacro and Vocola.

Quintijn



 04/13/2021 12:55 PM
User is offline View Users Profile Print this message

Author Icon
alexander
Top-Tier Member

Posts: 215
Joined: 07/31/2016

Okay thank you. Is dictation-toolbox the new home for Vocola? Is Mark still working on that and the main maintainer? I know that his repository had all sorts of extra branches with experimental work like vortex and Vocola to dragonfly.
 04/20/2021 12:31 PM
User is offline View Users Profile Print this message

Author Icon
quintijn
Top-Tier Member

Posts: 220
Joined: 07/28/2014

Mark Lillibridge is very busy, but I am occasionaly in contact with him. I try, with others who were in the dictation-toolbox before me, to bring all relevant speech recognition open source software together.

Natlink will - I hope - get an initial release for python 3 within several weeks. It has been a long and tedious process.

Unimacro and Vocola will follow about the same time or a little later. The Dragonfly people can then also try the new Natlink release.

A new repository is dtactions (dictation-toolbox actions), in which I, with others, try to collaborate on actions, like sending keystrokes to control the monitors of your computer.

So, this takes quite a bit of time, but is going to be very nice, better documented eventually and supported by a wider range of people.

I will announce here when a release is published.

You can get an overview at: https://github.com/dictation-toolbox



Quintijn



 04/21/2021 01:26 PM
User is offline View Users Profile Print this message


BigTech
Senior Member

Posts: 124
Joined: 11/25/2008

I'm not a real programmer, but if and when I run across a problem (others are also experiencing) with Vocola 2 related programming, I'll be here! Thanks for the work Quintijn, and of course Mark, and of course the originator. I use this stuff all day every day.



 10/02/2021 05:51 PM
User is offline View Users Profile Print this message


mdl
Top-Tier Member

Posts: 939
Joined: 04/18/2009

https://github.com/mdbridge/Vocola-2 remains the source of truth for Vocola 2 code.

I am unfortunately as quintijn says, I am very busy these days. :-(

There will be one more version of Vocola 2 for only Python 2; the version after that should work with Python 3 also.
The current version on branch master should have most of the needed portability fixes to work with Python 3; I believe it still needs some changes to deal with backward incompatible changes in NatLink 3.



 10/02/2021 05:54 PM
User is offline View Users Profile Print this message


mdl
Top-Tier Member

Posts: 939
Joined: 04/18/2009

in terms of lists of lists, I started working on a backend for Vocola 2 that compiles directly to dragonfly rather than NatLink; that would allow it to avoid certain limitations of NatLink including nested lists. Unfortunately, I had to set that aside for now to work on the Python 3 stuff.

If you want a cheat in the meantime, I encourage you to go up a level and write code to generate Vocola code. That should make it easy for you to generate lists from sublists.
 10/02/2021 05:56 PM
User is offline View Users Profile Print this message


mdl
Top-Tier Member

Posts: 939
Joined: 04/18/2009

"Mark, is this code generated from a lex definition or is the parser hand coded?"

I ended up hand building the parser because I couldn't get decent error handling otherwise.
 09/02/2022 02:46 PM
User is offline View Users Profile Print this message


mdl
Top-Tier Member

Posts: 939
Joined: 04/18/2009

 09/09/2022 03:12 PM
User is offline View Users Profile Print this message

Author Icon
alexander
Top-Tier Member

Posts: 215
Joined: 07/31/2016

Funny I just saw this.  I guess everything can be solved by adding another layer right?

I think I saw some Ruby In your repository a while back doing something like this...  I refuse to learn yet another scripting language, but maybe I could write some python to do it



 09/11/2022 03:37 PM
User is offline View Users Profile Print this message


mdl
Top-Tier Member

Posts: 939
Joined: 04/18/2009

yup. in this case by moving up a layer we can hopeful take advantage of all the community work on new speech engines for dragonfly and talon
Statistics
32617 users are registered to the KnowBrainer Speech Recognition forum.
There are currently 0 users logged in.
The most users ever online was 12124 on 09/09/2020 at 04:59 AM.
There are currently 186 guests browsing this forum, which makes a total of 186 users using this forum.

FuseTalk Standard Edition v4.0 - © 1999-2023 FuseTalk™ Inc. All rights reserved.