Example #1
0
        //Bing Syn
        //Returns a list of synonyms of
        //specialWord(people, location, products).
        static List <string> specialSynon(string specialWord)
        {
            DataServiceQuery <GetSynonymsEntitySet> SynonymsDataServiceQuery;
            BingSynonyms  bingSynonyms = new BingSynonyms();
            List <string> synonyms     = new List <string>();

            SynonymsDataServiceQuery = bingSynonyms.GetSynonyms(specialWord);
            foreach (GetSynonymsEntitySet entity in SynonymsDataServiceQuery)
            {
                synonyms.Add(entity.Synonym);
            }
            return(synonyms);
        }
Example #2
0
        //Bing Syn
        //Returns a list of synonyms of
        //specialWord(people, location, products).
        static List<string> specialSynon(string specialWord)
        {
            DataServiceQuery<GetSynonymsEntitySet> SynonymsDataServiceQuery;
            BingSynonyms bingSynonyms = new BingSynonyms();
            List<string> synonyms = new List<string>();

            SynonymsDataServiceQuery = bingSynonyms.GetSynonyms(specialWord);
            foreach (GetSynonymsEntitySet entity in SynonymsDataServiceQuery)
            {
                synonyms.Add(entity.Synonym);
            }
            return synonyms;
        }