Commits

Ben Wing  committed c2d6ab2

Couple of minor cleanups

  • Participants
  • Parent commits 8b25e36

Comments (0)

Files changed (2)

File src/main/scala/opennlp/textgrounder/geolocate/SphereEvaluation.scala

   def create_grouped_eval_stats(driver: GridLocateDriver,
     cell_grid: SphereCellGrid, results_by_range: Boolean) =
     new GroupedSphereDocumentEvalStats(driver,
-      cell_grid.asInstanceOf[SphereCellGrid],
-      results_by_range, is_ranked = true)
+      cell_grid, results_by_range, is_ranked = true)
   def create_cell_evaluation_result(document: SphereDocument,
       pred_cell: SphereCell, true_rank: Int) =
     new RankedSphereDocumentEvaluationResult(document, pred_cell, true_rank)

File src/main/scala/opennlp/textgrounder/gridlocate/Evaluation.scala

   -TEvalRes <: DocumentEvaluationResult[TCoord, TDoc, TCell, TGrid]
 ](
   driver_stats: ExperimentDriverStats,
-  cell_grid: CellGrid[TCoord,TDoc,TCell],
+  cell_grid: TGrid,
   results_by_range: Boolean
 ) {
   def create_stats(prefix: String): DocumentEvalStats