Commits

Slavko Zitnik committed 2cf5e58

small bugfix

Comments (0)

Files changed (2)

src/main/java/si/zitnik/research/iobie/statistics/test/TTest.scala

  * Time: 12:03 PM
  * To change this template use File | Settings | File Templates.
  */
-class TTest(mean: Double, sample: Array[Double], alpha: Double, tableTValue: Double = null) {
+class TTest(mean: Double, sample: Array[Double], alpha: Double, tableTValue: Double = -1) {
   val sampleStats = new SummaryStatistics()
   for (i <- 0 until sample.length) {
     sampleStats.addValue(sample(i))

src/main/java/si/zitnik/research/iobie/thirdparty/genderdata/api/NumberAndGenderData.scala

   private def init() {
     logger.info("Starting to read gender domain.")
 
-    for (line <- Source.fromInputStream(this.getClass.getClassLoader.getResourceAsStream("genderdata/gender.data")).getLines()) {
+    for (line <- Source.fromInputStream(this.getClass.getClassLoader.getResourceAsStream("genderdata/gender.data"), "iso-8859-1").getLines()) {
       val lineTab = line.split("\t")
 
       val counts = new NaGCounts(lineTab(1).split(" "))