#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..
| export async function test () { | |
| let some = await someThing(3000); | |
| console.log(some); | |
| return some; | |
| } | |
| async function someThing (ms) { | |
| return new Promise(resolve => setTimeout(() => { | |
| resolve(ms) |
| // there are proprietary objects here not included in this unpolished snippet | |
| // but you should get the gist | |
| var OAuth = require('oauth'); | |
| var oauth = new OAuth.OAuth( | |
| 'https://api.twitter.com/oauth/request_token', | |
| 'https://api.twitter.com/oauth/access_token', | |
| consumer_key, | |
| consumer_secret, |