#A Collection of NLP notes
##N-grams
###Calculating unigram probabilities:
P( wi ) = count ( wi ) ) / count ( total number of words )
In english..
| #!/usr/bin/env bash | |
| printUsage() { | |
| cat <<EOT | |
| Usage: $0 aws-region-name instance-type | |
| aws-region-name: Name of the AWS region (e.g. eu-west-1) | |
| instance-type: Either "ec2" or "ecs" | |
| EOT |
#A Collection of NLP notes
##N-grams
###Calculating unigram probabilities:
P( wi ) = count ( wi ) ) / count ( total number of words )
In english..