public virtual void TestCased()
        {
            string tempFilename = tempFile.GetPath();
            RegexNERSequenceClassifier cased = new RegexNERSequenceClassifier(tempFilename, false, false);

            CheckSentences(sentences, cased, expectedCased);
        }
 private static void CheckSentences(IList <IList <CoreLabel> > sentences, RegexNERSequenceClassifier uncased, string[] expectedOutput)
 {
     NUnit.Framework.Assert.AreEqual(expectedOutput.Length, sentences.Count);
     for (int i = 0; i < sentences.Count; ++i)
     {
         IList <CoreLabel> sentence = DeepCopy(sentences[i]);
         uncased.Classify(sentence);
         string[] answers = expectedOutput[i].Split(" ");
         CompareAnswers(answers, sentence);
     }
 }
 public virtual void TestNEROverlaps()
 {
     NUnit.Framework.Assert.AreEqual(nerPatterns.Length, expectedNER.Length);
     for (int k = 0; k < nerPatterns.Length; k++)
     {
         BufferedReader             r1    = new BufferedReader(new StringReader(nerPatterns[k]));
         RegexNERSequenceClassifier cased = new RegexNERSequenceClassifier(r1, false, false, null);
         NUnit.Framework.Assert.AreEqual(NERsentences.Count, expectedNER[k].Length);
         for (int i = 0; i < NERsentences.Count; ++i)
         {
             IList <CoreLabel> sentence = DeepCopy(NERsentences[i]);
             cased.Classify(sentence);
             string[] answers = expectedNER[k][i].Split(" ");
             CompareAnswers(answers, sentence);
         }
     }
 }