public void TestNegative() { var eval = new SentenceDetectorEvaluator(new DummySD(SentenceSampleTest.CreateGoldSample())); var stream = new CollectionObjectStream<SentenceSample>( new[] { SentenceSampleTest.CreatePredSample() }); eval.Evaluate(stream); Assert.AreEqual(-1, eval.FMeasure.Value); }
public void TestNegative() { var eval = new SentenceDetectorEvaluator(new DummySd(SentenceSampleTest.CreateGoldSample())); var stream = new CollectionObjectStream <SentenceSample>( new[] { SentenceSampleTest.CreatePredSample() }); eval.Evaluate(stream); Assert.AreEqual(-1, eval.FMeasure.Value); }