Skip to content

Instantly share code, notes, and snippets.

@ayushoriginal
Created June 24, 2019 12:36
Show Gist options
  • Save ayushoriginal/37ee8d2be232c5c35de8bd092fd8dd96 to your computer and use it in GitHub Desktop.
Save ayushoriginal/37ee8d2be232c5c35de8bd092fd8dd96 to your computer and use it in GitHub Desktop.
on_hot_cs
double[] example = new double[len_tweet];//Final Array automatically assigned to 0 at each index
int k = 0;
int m = 0;
string possible_key = null;
while (k < lemma_tokens_str.Count)
{
possible_key = lemma_tokens_str[k];
if (word_code.ContainsKey(possible_key))
{
example[m] = word_code[lemma_tokens_str[k]];
m += 1;
k += 1;
}
else
{
k += 1;
continue;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment