trochee: (pedant)
trochee ([personal profile] trochee) wrote2006-03-28 01:42 pm

yay! bug finally squashed: how many words is "gonna"?

My labmate S. has been after me to fix a bug for him for oh, six weeks.

i finally had a little time to tackle his bug (after a visit to the Ling department to turn in my fellowship applications) and was able to figure out what was wrong -- at last!

Here's what happened:

The code S. was using was code I developed to synchronize ten or so different annotations of the same speech corpus: one describes words, one describes syntactic structure, another annotates disfluencies and speech acts, another annotates prosody, etcetera etcetera ad nauseam (and I do mean ad nauseam).

Here's one of the gotchas:

syntactic annotation wants to treat a sequence like "I'll do it" as four words:

(S
  (NP I)
  (VP
    (Aux 'll)
    (VP (V do) (NP it)))
However, phonological annotation (speech recognition transcripts etcetera) would really like to treat it as three: I'll + do + it.

Both sides have their logic. To align these files, i had to make a hand-built list of syntax "words" that should be mooshed together with the previous word. Here's my list: n't 's 'S -s 'd 're 'll 'm 've '

But I'd missed one: na, as in "gonna". That meant that when I was trying to align the phonological words, I had an extra syntactic word (either "gon" or "na" depending on the mood of the dynamic-programming alignment when it reached that point) that had no corresponding phonological word. And there was much lamenting in the code.

Hooray that it's fixed now! Hoping that S. doesn't find any more of these.

[identity profile] faithhopetricks.livejournal.com 2006-03-28 09:51 pm (UTC)(link)
ICON LOVE

....ahem.

[identity profile] trochee.livejournal.com 2006-03-28 09:55 pm (UTC)(link)
credit is due to [livejournal.com profile] chr0me_kitten, who made it for me.

[identity profile] boobirdsfly.livejournal.com 2006-03-28 10:19 pm (UTC)(link)
No i think she was trying to offer you the riddles in the dark one !

am I right ?

quizzical

[identity profile] trochee.livejournal.com 2006-03-28 10:20 pm (UTC)(link)
i have no idea what you're saying. :-)

Re: quizzical

[identity profile] boobirdsfly.livejournal.com 2006-03-28 10:22 pm (UTC)(link)
I am saying that I think redshoes was trying to gift you the icon she used !
But i could be wrong.

Re: quizzical -> clarity

[identity profile] trochee.livejournal.com 2006-03-28 10:28 pm (UTC)(link)
ah, I read it as "she was trying to offer you [the riddles in [the dark one]]", rather than "she was trying to offer you the [riddles in the dark] one".

No longer confused. :-) Not certain of [livejournal.com profile] the_red_shoes' intent either way.

Re: quizzical -> clarity

[identity profile] boobirdsfly.livejournal.com 2006-03-28 10:31 pm (UTC)(link)
Will she pop up and clear it all up for us ?
stay tuned...

Re: quizzical -> clarity

[identity profile] faithhopetricks.livejournal.com 2006-03-28 10:33 pm (UTC)(link)
I have RETURNED!

I was lusting after Vincent D'Onofrio.

Re: quizzical -> clarity

[identity profile] boobirdsfly.livejournal.com 2006-03-28 10:34 pm (UTC)(link)
Yes, aren't we all ?
*sigh*

Re: quizzical -> clarity

[identity profile] faithhopetricks.livejournal.com 2006-03-28 10:35 pm (UTC)(link)
....he's just so....so.....GEEKILY HOT. HOTLY GEEKY.

Re: quizzical -> clarity

[identity profile] faithhopetricks.livejournal.com 2006-03-28 10:50 pm (UTC)(link)
((scoops pillow under your head before it hits the floor))

Re: quizzical -> clarity

[identity profile] boobirdsfly.livejournal.com 2006-03-29 12:09 am (UTC)(link)
Ha ha, i got a really awesome visual for this one.

[identity profile] faithhopetricks.livejournal.com 2006-03-28 10:32 pm (UTC)(link)
No, actually I was expressing helpless fangeeky love for Bobby Detective Goren Vincent D'Onofrio.

[identity profile] faithhopetricks.livejournal.com 2006-03-28 10:34 pm (UTC)(link)
....wibbles over Vincent D'Onofrio some more

Poetry

[identity profile] boobirdsfly.livejournal.com 2006-03-28 10:20 pm (UTC)(link)
And there was much lamenting in the code.

I love this sentence.
This sentence will be in my play which involves a crazy computer guy one day....

Re: Poetry

[identity profile] trochee.livejournal.com 2006-03-28 10:22 pm (UTC)(link)
it was a distant allusion to "and there was much rejoicing", but I think insane computer guy works too.

and it's certainly believable that insane-computer-guy makes references to The Holy Grail.

Re: Poetry

[identity profile] boobirdsfly.livejournal.com 2006-03-28 10:24 pm (UTC)(link)
I see the allusion. but that doesn't even matter...
the sentence itself is gold.

Re: Poetry

[identity profile] faithhopetricks.livejournal.com 2006-03-28 10:51 pm (UTC)(link)
I think my husband regularly comments laments in his code at work. Heh.

[identity profile] evan.livejournal.com 2006-03-30 04:10 am (UTC)(link)
Write an automated test: a function that takes one of these parsed sentences and exports how many words it sees, then verify that all systems have the same outputs for sentences you'd expect to be the same.