javascript - selecting an optimal span -


this pure programming question. have array of words. words have pauses after them various length (mostly zero). each word has certainty score. want select optimal span of words lookahead window.

  • the lower overall certainty better (or lower 33th percentile of certainty better).
  • the longer pauses on edges better (with hard minimum).
  • there optimum length (like 5 seconds). closer better. there hard limits on mimimum , maximum length.

nota bene, in javascript, cannot afford using support vector machines s or like. :-) performance thoughts, calculated maybe every minute on window of 2-minute length (250 words or so).

second nota bene interested: select span of words generated automatic speech recognition manual transcription (active learning).

how approach this?

a night's sleep brought light on issue. there's little magic needed. since number of candidate spans quite limited (in worst case square of number of words in window -- 250^2), can evaluate fitness of each span , pick 1 best score.

duh, why didn't see yesterday?


Comments

Popular posts from this blog

php - get table cell data from and place a copy in another table -

javascript - Mootools wait with Fx.Morph start -

php - Navigate throught databse rows -