#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..
| """CONVENTIONS: | |
| positions are done row-column from the bottom left and are both numbers. This corresponds to the alpha-number system in traditional chess while being computationally useful. they are specified as tuples | |
| """ | |
| import itertools | |
| WHITE = "white" | |
| BLACK = "black" | |
| Complexity of Python Operations | |
| In this lecture we will learn the complexity classes of various operations on | |
| Python data types. Then we wil learn how to combine these complexity classes to | |
| compute the complexity class of all the code in a function, and therefore the | |
| complexity class of the function. This is called "static" analysis, because we | |
| do not need to run any code to perform it. | |
| ------------------------------------------------------------------------------ |