#A Collection of NLP notes
##N-grams
###Calculating unigram probabilities:
P( wi ) = count ( wi ) ) / count ( total number of words )
In english..
#A Collection of NLP notes
##N-grams
###Calculating unigram probabilities:
P( wi ) = count ( wi ) ) / count ( total number of words )
In english..
''' | |
Created on 2012. 2. 19. | |
This module is for playing mp3 (limited) and wav formatted audio file | |
@author: John | |
''' | |
import pygame | |
def playsound(soundfile): | |
"""Play sound through default mixer channel in blocking manner. | |
This will load the whole sound into memory before playback |