private string Simplify(string word) { Dictionary <string, string> taggedSents = tenseRecognition.TagSents(new List <string> { word }); Dictionary <string, string> stopwordsRemoved = stopWordsRemoval.RemoveStopWords(taggedSents); Dictionary <string, string> infinitive = this.infinitive.TurnVerbsToInfinitive(stopwordsRemoved); Dictionary <string, string> singular = pluralToSingular.ConvertToSinular(infinitive); Dictionary <string, string> pos = posTagger.PosTag(singular); return(singular.First().Key); }
private Dictionary <string, string> Simplify(string text) { List <string> sentences = sentenceSplitting.Process(text); List <string> subSentences = sentenceSubsplitting.Process(sentences); Dictionary <string, string> taggedSents = tenseRecognition.TagSents(subSentences); Dictionary <string, string> infinitive = this.infinitive.TurnVerbsToInfinitive(taggedSents); Dictionary <string, string> singular = pluralToSingular.ConvertToSinular(infinitive); Dictionary <string, string> stopwordsRemoved = stopWordsRemoval.RemoveStopWords(singular); Dictionary <string, string> pos = posTagger.PosTag(stopwordsRemoved); Dictionary <string, string> synonyms = phraseSynonyms.MapPhraseSynonyms(pos); //Dictionary<List<KeyValuePair<string, List<string>>>, string> synonyms = SignLanguageSimplification.SimplificationAlgorithm.Synonyms.FindSynonyms(singular); return(synonyms); }