| | |
| | | var obj = document.getElementById("varHot");
|
| | |
|
| | | if(typeof(obj) == 'undefined' || obj==null || obj.value.length<=0){
|
| | | return "";
|
| | | return null;
|
| | | }
|
| | | let val = obj.value.toString();
|
| | |
|
| | |
| | | for(var i=0;i<result.length-1;i++)
|
| | | wordstr=wordstr+result[i]+" ";
|
| | |
|
| | | jsonresult[wordstr.trim()]=result[result.length-1];
|
| | | jsonresult[wordstr.trim()]= parseInt(result[result.length-1]);
|
| | | }
|
| | | }
|
| | | console.log("jsonresult="+JSON.stringify(jsonresult));
|
| | | return jsonresult;
|
| | | return JSON.stringify(jsonresult);
|
| | |
|
| | | }
|
| | | function getAsrMode(){
|
| | |
| | | {
|
| | | return tmptext;
|
| | | }
|
| | | tmptext=tmptext.replace(/。/g, ","); // in case there are a lot of "。"
|
| | | tmptext=tmptext.replace(/。|?|,|、|\?|\./g, ","); // replace all punc for parse
|
| | | var words=tmptext.split(",");
|
| | | var jsontime=JSON.parse(tmptime); //JSON.parse(tmptime.replace(/\]\]\[\[/g, "],[")); // in case there are a lot segments by VAD
|
| | | var char_index=0;
|