©2003 Kåre Sjölander and Jonas Beskow
Introduction Download Documentation Links Forum
WaveSurfer user forum

FAQ  FAQ
Search  Search
Memberlist  Memberlist
Register  Register
Profile  Profile
Login  Login

1.7: auto detection of labelformat fails for WAVES <->

 
Post new topic   Reply to topic    www.speech.kth.se/wavesurfer Forum Index -> WaveSurfer
View previous topic :: View next topic  
Author Message
koloska
Guest





PostPosted: Wed Jul 07, 2004 10:45 am    Post subject: 1.7: auto detection of labelformat fails for WAVES <-> Reply with quote

auto detection of labelformat is very nice in theory but doesn't work for me in practice. We use WAVES Format label (still coming from the old days of ESPS) and this format is automagically recognized as TIMIT and thus can't be read. So all our labelfiles are invisible in wavesurfer 1.7 cause I haven't found a way to switch autodetection off -- though there is a flag for exactly this in the code.

In general it would be good to be able to switch autodetection off for a specified transcription pane. I think there will be more wrong autodetects in the future, cause the label formats don't have exact markers and must be recognized heuristically.

Description of the WAVES problem:
TIMIT auto detector uses the following regexp on the last label found in the current labelfile:

Code:

  if {[regexp {\s*(\d+)\s+(\d+)\s+\S+} $lastrow a b c] == 1} {
    if {[info exists c] && $c <= 3500000} {
     return TIMIT
    }
   }


but this unfortunately maps to (some?) WAVES labels like the following typical example

66.5140 121 e

where the color (middle) is regexped as 'c' and satisfies the TIMIT constraint ...
Back to top
koloska
Guest





PostPosted: Thu Jul 08, 2004 11:03 pm    Post subject: solution: fix the regexp Reply with quote

I have found it:
timit format has 2 integers followed by the label

the regexp falsely matches the decimals of the WAVES time so the solution is to anchor the regexp at the beginning of the line:
Code:

  {^\s*(\d+)\s+(\d+)\s+\S+}


that's it
Back to top
kare



Joined: 16 Aug 2002
Posts: 371
Location: KTH, Centre for Speech Technology

PostPosted: Fri Jul 09, 2004 11:12 pm    Post subject: Reply with quote

Thanks for the fix!
I'll try to update the releases ASAP.

Kåre
Back to top
View users profile Send private message Visit posters website
kare



Joined: 16 Aug 2002
Posts: 371
Location: KTH, Centre for Speech Technology

PostPosted: Fri Jul 16, 2004 10:45 pm    Post subject: Reply with quote

I've made three distributions available which fixes the bug and also makes auto-detection configurable in Properties...

http://www.speech.kth.se/wavesurfer/wavesurfer-1.7.1.tar.gz

http://www.speech.kth.se/wavesurfer/wavesurfer-1.7.1-linux-i386.tgz

http://www.speech.kth.se/wavesurfer/wavesurfer-171-win.zip

These are not tested....

Kåre
Back to top
View users profile Send private message Visit posters website
Display posts from previous:   
Post new topic   Reply to topic    www.speech.kth.se/wavesurfer Forum Index -> WaveSurfer All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2.0.1 © 2001, 2002 phpBB Group