Esempio n. 1
0
        public void TestGetMapping()
        {
            FullStory fs = FullStoryFactory.GetFullStory(9148746);
            Dictionary <string, HashSet <int> > wordMapping = fs.WordIDMapping;

            Assert.AreEqual(wordMapping.Count > 1, true);
        }
Esempio n. 2
0
        public void TestGetTopSentences()
        {
            FullStory fs = FullStoryFactory.GetFullStory(9231386);
            Dictionary <string, HashSet <int> > wordMapping = fs.WordIDMapping;
            List <SentenceObj> top5Sentences = fs.GetTopSentences(5);

            Assert.AreEqual(top5Sentences.Count > 1, true);
        }
Esempio n. 3
0
 public void TestGetAnchorWords()
 {
     FullStory fs = FullStoryFactory.GetFullStory(9272275);
     //Dictionary<string, HashSet<int>> wordMapping = fs.WordIDMapping;
     //List<string> top5Sentences = fs.GetAnchorWords(10);//fs.GetTopSentences(5);
     //children node = fs.GetNodeById(9271331);
     List <string> topAnchors = fs.GetAnchorWords(10);
     //List<string> topNamedObjects = fs.GetNamedObjects(30);
     //List<string> top5Anchors = fs.GetAnchorWords(node, 5);
     //Assert.AreEqual(topNamedObjects.Count > 1, true);
 }