Beispiel #1
0
        public void Setup()
        {
            mockArffDataSet = ArffDataSet.Create <PositivityType>("Test");
            instance        = CreateProcessArff();
            document        = new Document("Test");
            document.Sentences.Add(new SentenceItem("Test"));
            document.Sentences[0].Words.Add(
                WordExFactory.Construct(
                    new TestWordItem("Good")
            {
                Stemmed     = "Good",
                IsSentiment = true
            }));
            document.Sentences[0].Words.Add(
                WordExFactory.Construct(
                    new TestWordItem("Two")
            {
                Stemmed = "Two"
            }));
            document.Sentences[0].Words.Add(
                WordExFactory.Construct(
                    new TestWordItem("#Three")
            {
                Stemmed = "#Three"
            }));
            var factory = ActualWordsHandler.InstanceSimple.Container.Resolve <Func <Document, IParsedReviewManager> >()(document);

            review = factory.Create();
        }
Beispiel #2
0
        public void Setup()
        {
            mockArffDataSet = new Mock <IArffDataSet>();
            var header = new Mock <IHeadersWordsHandling>();

            mockArffDataSet.Setup(item => item.Header).Returns(header.Object);
            instance = CreateProcessArff();
        }