1. Mike Speriosu
  2. updown

Commits

vvcephei  committed 143037b

bugfix from Amanda. Thanks!

Here's what she sent:
There's a conflict between SplitExperiment and SplitMaxentExperiment.

In SplitExperiment val result = doExperiment(TweetFeatureReader(testFileName), TweetFeatureReader(trainFileName)) <-- the test file is sent first
and in SplitMaxentExperiment def doExperiment(trainSet: List[GoldLabeledTweet], testSet: List[GoldLabeledTweet]) <--- the train set is defined first.

  • Participants
  • Parent commits dc2a0ba
  • Branches default

Comments (0)

Files changed (2)

File config/main/log4j.properties

View file
-log4j.rootLogger=DEBUG, stderr
+log4j.rootLogger=INFO, stderr
 log4j.appender.stderr=org.apache.log4j.ConsoleAppender
 log4j.appender.stderr.layout=org.apache.log4j.PatternLayout
 

File src/main/scala/updown/app/experiment/maxent/SplitMaxentExperiment.scala

View file
 import updown.app.experiment.{SplitExperiment, NFoldExperiment}
 
 object SplitMaxentExperiment extends SplitExperiment {
-  def doExperiment(trainSet: List[GoldLabeledTweet], testSet: List[GoldLabeledTweet]) = {
+  def doExperiment(testSet: List[GoldLabeledTweet], trainSet: List[GoldLabeledTweet]) = {
     logger.info("performing Maxent experiment")
     logger.debug("training model")
     val model = TrainMaxentModel.trainWithGoldLabeledTweetIterator(trainSet.iterator)