Commits

Slavko Zitnik  committed 073f35b

chemdner test: train on dev by fflevel

  • Participants
  • Parent commits 200ffa7

Comments (0)

Files changed (1)

File src/main/java/si/zitnik/research/iobie/core/ner/test/Chemdner2013Evaluation.scala

     new ChunkTagger().tag(trainData)
     new BioLemmaTagger().tag(trainData)
 
+    /*
     val devData = new Chemdner2013Importer(Chemdner2013DatasetType.development).importForIE()
     new PoSTagger().tag(devData)
     new ChunkTagger().tag(devData)
     new BioLemmaTagger().tag(devData)
+    */
 
     val retVal = new Examples()
     retVal.add(trainData)
-    retVal.add(devData)
+    //retVal.add(devData)
     retVal
   }
 
   def importTestData(sublistFromTo: Option[(Int, Int)] = None) = {
-    val testData = new Chemdner2013Importer(Chemdner2013DatasetType.test).importForIE(sublistFromTo)
+    val testData = new Chemdner2013Importer(Chemdner2013DatasetType.development).importForIE(sublistFromTo)
     new PoSTagger().tag(testData)
     new ChunkTagger().tag(testData)
     new BioLemmaTagger().tag(testData)
   }
 
   def main(args: Array[String]) {
-    (2 to 4).foreach(ffLevel => {
+    (0 to 4).foreach(ffLevel => {
       println("Running feature functions, level="+ffLevel)
       println("Running separate analysis")
-      //val cls1 = runClassifier1(ffLevel)
-      //val cls2 = runClassifier2(ffLevel)
+      val cls1 = runClassifier1(ffLevel)
+      val cls2 = runClassifier2(ffLevel)
       runClassifier3(ffLevel)
       runClassifier4(ffLevel)
-      //println("Running analysis with SVM")
-      //runBothWithSVM(ffLevel, cls1, cls2)
+      println("Running analysis with SVM")
+      runBothWithSVM(ffLevel, cls1, cls2)
     })