14.07.2013 Views

Dynamic Time Warping (DTW) for Single Word and Sentence ...

Dynamic Time Warping (DTW) for Single Word and Sentence ...

Dynamic Time Warping (DTW) for Single Word and Sentence ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>DTW</strong> <strong>for</strong> <strong>Single</strong> <strong>Word</strong> <strong>and</strong> <strong>Sentence</strong> Recognizers<br />

The <strong>Dynamic</strong> Programming Matrix (2)<br />

Usually <strong>for</strong> the minimal editing distance:<br />

• The cost <strong>for</strong> deleting or inserting a character is 1<br />

• The cost <strong>for</strong> replacing x i with y j is 0 (if x i = y j ) or 1 (else)<br />

• Might be useful to define other costs <strong>for</strong> special purposes<br />

Eventually:<br />

• Remember <strong>for</strong> each state (i-1, j-1) which one was<br />

the best predecessor (backpointer)<br />

• Find the sequence of editing steps by<br />

backtracing the predecessor pointers<br />

from the final state<br />

36

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!