pietrop / slate-transcript-editor

A React component to make correcting automated transcriptions of audio and video easier and faster. Using the SlateJs editor.
https://pietrop.github.io/slate-transcript-editor
Other
75 stars 33 forks source link

avoid unnecessary re-alignement #17

Closed pietrop closed 3 years ago

pietrop commented 3 years ago

alignment is expensive. and even with tweaks on the alignment algos such as https://github.com/pietrop/align-diarized-text/pull/5 from https://github.com/pietrop/slate-transcript-editor/pull/16 we still don't want to run the alignment when is not needed.

Expected behavior

For example when exporting, it should check if there has been changes from when the transcript was first opened (eg saving a boolean in state) and if there have not, maybe skip the alignment before exporting, as it wouldn’t be necessary in that edge case. (If that makes sense?)

Eg you open the transcript, and then go straight to export without editing the text, there’s no need to re-align etc..

As well as after someone saves (as saving runs the alignment) .

Screenshots

NA

Additional context

NA

pietrop commented 3 years ago

addressed https://github.com/pietrop/slate-transcript-editor/pull/24