Example #1
0
 public InputProcessing()
 {
     gloveVector.LoadFromFile(GLOVE_VECTORS_PATH);
     tagList = File.ReadAllText(TAG_PATH).Split(Info.DELIM);
     tagList = Array.ConvertAll(tagList, d => d.ToLower());
     tagListEmbedding.Load(this.tagList, gloveVector);
 }
Example #2
0
 public List <List <WordProb> > GetTags(string[] key_words)
 {
     Console.WriteLine("done loading");
     // string [] key_words=File.ReadAllText(globals.KEY_WORDS_PATH).Split(globals.DELIM);
     // key_words = Array.ConvertAll(key_words, d => d.ToLower());
     keywordsEmbedding.Load(key_words, gloveVector);
     return(keywordsEmbedding.ListTags(tagListEmbedding));
 }