On 3/19/07, Switanek, Nick <[EMAIL PROTECTED]> wrote:
> Thanks very much for your help.
>
> It appears that the step that is taking a long time, and that therefore
> makes me think that the script is somehow broken, is creating a
> dictionary of frequencies from the list of ngrams. To do this, I've
Switanek, Nick wrote:
> Great, Kent, thanks. I thought that I had to check in the .keys() to see
> if the key was there.
>
> It seems that the method you suggest will not work if I'm looking for a
> value in the dictionary. If that's correct, is there a fast alternative
> to searching through .va
Switanek, Nick wrote:
> Thanks very much for your help.
>
> I did indeed neglect to put the "print" in the code that I sent to the
> list.
>
> It appears that the step that is taking a long time, and that therefore
> makes me think that the script is somehow broken, is creating a
> dictionary of
yLucene would help create frequency dictionaries,
but I can't figure it out from the online material available. Any
suggestions?
Thanks,
Nick
-Original Message-
From: Jerry Hill [mailto:[EMAIL PROTECTED]
Sent: Friday, March 16, 2007 12:52 PM
To: Switanek, Nick
Cc: tutor@python.org
On 3/16/07, Switanek, Nick <[EMAIL PROTECTED]> wrote:
> After creating a list of words ('wordlist'), I can run the following
> code in the interactive window of PythonWin in about ten seconds. If I
> run the script containing the code, the script seems to hang on the
> loop. I'd be grateful for hel
Hi,
After creating a list of words ('wordlist'), I can run the following
code in the interactive window of PythonWin in about ten seconds. If I
run the script containing the code, the script seems to hang on the
loop. I'd be grateful for help as to why; I often seem to have something
that works in