Thursday, January 20, 2022

Punkt

 Couldn't finish yesterday's entry for CS50 AI properly because

I couldn't manage to download the python tokenizer (charmingly 

named 'punkt'). In the cool light of morning today, I solved it.


Forget pip, just go on the python interpreter in Command Prompt.

One needs to locate 'punkt' from the list of options.



*     *     *
Given the corpus of the works of Sir A.C. Doyle,  Sherlock Holmes, print out

the 10 most used ngrams (here, I asked for 1 and 4).




😀




No comments: