function [recognitionRate] = LenDependClassify(data) warning off; prm; sylAccuracy = []; meanAccuracy = []; dataNum = 0; hitNum = 0; for i = 1:length(data) if ~isempty(data{i}) [RR, missDataIdx] = stressClassify(data{i}, 2); dataNum = dataNum + length(data{i}.name); hitNum = hitNum + RR*length(data{i}.name)/100; sylAccuracy = [sylAccuracy, RR]; end end %recognitionRate = mean(sylAccuracy); recognitionRate = 100*hitNum/dataNum; sylAccuracy = [sylAccuracy, recognitionRate]; xlswrite('output/sylRR_allUtt', sylAccuracy, 'A2:E2'); fprintf('Word Length-dependent Accuracy = %.2f %%\n', recognitionRate);