Commits

vvcephei committed b35e80a

cleaning up and extracting fiasana

  • Participants
  • Parent commits 993142d

Comments (0)

Files changed (4)

File src/main/scala/opennlp/scalabha/preproc/TOK2TREE.scala

 import opennlp.scalabha.tree.MultiLineTreeParser
 
 object TOK2TREE {
-  val parser = new ArgotParser("opennlp.scalabha.preproc.Tokenizer", preUsage = Some("Version 0.0"))
+  val parser = new ArgotParser(this.getClass.getName, preUsage = Some("Version 0.0"))
   val help = parser.flag[Boolean](List("h", "help"), "print help")
   val inputOpt = parser.option[String](List("i", "inputTokens"), "FILE_OR_DIR", "Input inputFile or directory to tokenize")
   val outputOpt = parser.option[String](List("o", "outputTrees"), "DIR", "Output location for the tree files. " +

File src/main/scala/opennlp/scalabha/preproc/TokToTreeSeed.scala

       }
       if (debug.value.isDefined)
         log = new SimpleLogger(
-          XmlToTok.getClass.toString,
+          TokToTreeSeed.getClass.toString,
           SimpleLogger.DEBUG,
           new BufferedWriter(new OutputStreamWriter(System.err)))
 

File src/main/scala/opennlp/scalabha/tree/Comparer.scala

 
   import ArgotConverters._
 
-  val parser = new ArgotParser("opennlp.scalabha.preproc.Tokenizer", preUsage = Some("Version 0.0"))
+  val parser = new ArgotParser(this.getClass.getName, preUsage = Some("Version 0.0"))
   val help = parser.flag[Boolean](List("h", "help"), "print help")
   val left = parser.option[String](List("l", "left"), "FILE", "left tree inputFile for comparison")
   val right = parser.option[String](List("r", "right"), "FILE", "right tree inputFile for comparison")
-  val leftLog = new SimpleLogger("opennlp.scalabha.tree.Comparer(LEFT FILE)", SimpleLogger.WARN, new BufferedWriter(new OutputStreamWriter(System.err)))
-  val rightLog = new SimpleLogger("opennlp.scalabha.tree.Comparer(RIGHT FILE)", SimpleLogger.WARN, new BufferedWriter(new OutputStreamWriter(System.err)))
-  val log = new SimpleLogger("opennlp.scalabha.tree.Comparer", SimpleLogger.WARN, new BufferedWriter(new OutputStreamWriter(System.err)))
+  val leftLog = new SimpleLogger(this.getClass.getName+"(LEFT FILE)", SimpleLogger.WARN, new BufferedWriter(new OutputStreamWriter(System.err)))
+  val rightLog = new SimpleLogger(this.getClass.getName+"(RIGHT FILE)", SimpleLogger.WARN, new BufferedWriter(new OutputStreamWriter(System.err)))
+  val log = new SimpleLogger(this.getClass.getName, SimpleLogger.WARN, new BufferedWriter(new OutputStreamWriter(System.err)))
 
   abstract class ComparisonResult
 

File src/main/scala/opennlp/scalabha/tree/TagChecker.scala

 
   import ArgotConverters._
 
-  val parser = new ArgotParser("opennlp.scalabha.preproc.Tokenizer", preUsage = Some("Version 0.0"))
+  val parser = new ArgotParser(this.getClass.getName, preUsage = Some("Version 0.0"))
   val help = parser.flag[Boolean](List("h", "help"), "print help")
   val input = parser.option[String](List("i", "input"), "FILE", "input inputFile in which to check tags")
   val other = parser.option[String](List("other"), "FILE", "(optional) other inputFile to compare against the input inputFile")
-  val log = new SimpleLogger("opennlp.scalabha.tree.TagChecker", SimpleLogger.WARN, new BufferedWriter(new OutputStreamWriter(System.err)))
-  val noLog = new SimpleLogger("opennlp.scalabha.tree.TagChecker", SimpleLogger.NONE, new BufferedWriter(new OutputStreamWriter(System.err)))
+  val log = new SimpleLogger(this.getClass.getName, SimpleLogger.WARN, new BufferedWriter(new OutputStreamWriter(System.err)))
+  val noLog = new SimpleLogger(this.getClass.getName, SimpleLogger.NONE, new BufferedWriter(new OutputStreamWriter(System.err)))
 
 
   abstract class TagCheckResult
   }
 
   def main(args: Array[String]) {
-    val parser = new ArgotParser("opennlp.scalabha.preproc.Tokenizer", preUsage = Some("Version 0.0"))
+    val parser = new ArgotParser(this.getClass.getName, preUsage = Some("Version 0.0"))
     val help = parser.flag[Boolean](List("h", "help"), "print help")
     val input = parser.option[String](List("i", "input"), "FILE", "input inputFile in which to check tags")
     val tokens = parser.option[String](List("tok"), "FILE", "tags to check")