1. Slavko Zitnik
  2. IOBIE

Commits

Slavko Zitnik  committed 2cf5e58

small bugfix

  • Participants
  • Parent commits ee593da
  • Branches master

Comments (0)

Files changed (2)

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

View file
  • Ignore whitespace
  * 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))

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

View file
  • Ignore whitespace
   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(" "))