VoxForge
hello,
Can anyone help me.
I tried to executed prompts2wlist.pl to my voxforge/tutorial directory but it gives me errors like
bareword found where operator executed at C:\Users\Jarvis\voxforge\julius-4.1.2-win32bin\prompts2wlist.pl line X (X=numbers),near "End,line,prompts-fh,..etc"(missing semicolone or privious line?).
syntax error
Semicolone seems to be missing
String founded where operator expected
Execution of c:\users:\... ...\ prompts2wlist.pl aborted due to compilation errors.
Is any other virsion available for prompts2wlist.pl?
I am using julius -4.1.2 in windows 7(32-bit).
prompts2wlist.pl
function prompts2wlist(prompts, wlist) if ! isfile(prompts) error("can't find prompts file: $prompts") end wordhash = Dict{String, Int32}() prompts_fh=open(readlines, prompts) for lineln=prompts_fh line=chomp(lineln) line_array=split(line,r"\s+"); shift!(line_array) for word=line_array wordhash[word]=1 end end wordhash["SENT-END"]=1 wordhash["SENT-START"]=1 wordlist = keys(wordhash) # returns an iterator wlist_arr=Array(String,length(wordhash)) i=1 for word=wordlist wlist_arr = word * "\n" i=i+1 end sortedwlist_arr=sort(wlist_arr) wlist_fh=open(wlist,"w"); write(wlist_fh,sortedwlist_arr); close(wlist_fh) end # if called from command line if length(ARGS) > 0 if ! isfile(ARGS[1]) error("can't find prompts file: $ARGS[1]") end if length(ARGS) <= 2 prompts2wlist(ARGS[1],ARGS[2] ) else error("prompts2list: too many arguments for call from command line") end end
>prompts2wlist.pl
I'm a little confused here... the acoustic model tutorial build scripts were converted from Perl to Julia a few months ago and are now hosted on github.
The '.pl' seems to indicate you are trying to run the script using Perl, Julia uses '.jl'. There might be an error in the tutorial... which page of the tutorial/howto are you working with?
thanks,
Ken
First of all thank you very much.
I am following step by step voxforge Windows tutorials.
I am working with STEP 2-Pronunciation Dictionary - wlist
file with windows 7(32 bit).
I installed julius-4.1.2-win32bin,julia 0.4.0.
In Step 1 - Task Grammar
(Background - Speech Recognition Engines)
Compile your grammar, here i have to use mkdfa.jl file
but it i did not worked so i used mkdfa.pl and its
Successfully worked.
now, in step-2.
I am confuse about "prompts2wlist.pl" and
"prompts2wlist.jl" file.
I tried to execute prompts2wlist.pl as well as
Prompts2wlist.jl file in CMD (command prompts) as well
as Julia 0.4.0.
It has to create the wlist file. but unable to create it.
can you please give me solution which file I execute,
How/where to do that.
Help me.
Thanks.
when you type :
julia -v
on your command line, do you get version information for Julia?
if not, you need to make sure julia is installed, and update your path variable.
Thank you .
I am follwing your steps.
I am in second step(
I want to execute prompts2wlist.jl file but it gives me an errors as i mention in my first question.
can you please give me it solution.
also I tried to run your GitHub demo (VoxForge /Developer) its not run in my computer.How can i run it in my computer?
I am using windows 7(32-bit).
HTK 3.3
Julius 4.3.1 (also tried 4.1.2).
julia 0.4.0.
please help me.
Thank you.
>it gives me an errors as i mention in my first question.
as stated in Step 2 of the Tutorial, run it as follows:
julia ../bin/prompts2wlist.jl prompts.txt wlist
You need to make sure the julia programming language is installed on your system and that you have updated your path.