@@ -5,23 +5,19 @@ import org.ivdnt.galahad.corpora.Corpus
55import org.ivdnt.galahad.evaluation.confusion.CONFUSION_TYPES
66import org.ivdnt.galahad.evaluation.distribution.CorpusDistribution
77import org.ivdnt.galahad.exceptions.DocumentNotFoundException
8+ import org.ivdnt.galahad.files.GalahadFolder
89import org.ivdnt.galahad.files.GalahadFolderManager
910import org.ivdnt.galahad.files.ValidatedDiskValue
1011import org.ivdnt.galahad.taggers.Tagger
1112import org.ivdnt.galahad.web.controller.DISTRIBUTION_MAX_SIZE
1213import java.io.File
1314
14- class JobEvaluations (
15+ class JobEvaluation (
1516 dir : File ,
1617 private val corpus : Corpus ,
1718 private val jobs : JobPair ,
18- ) : GalahadFolderManager<DocumentEvaluations, String>(dir) {
19- override fun ctor (key : String ): DocumentEvaluations {
20- TODO (" Not yet implemented" )
21- }
22-
23- override fun throwNotFound (key : String ): Nothing = throw DocumentNotFoundException (key)
24-
19+ ) : GalahadFolder(dir) {
20+ val documents: DocumentEvaluations = DocumentEvaluations (dir.resolve(DOCUMENTS_FOLDER ), corpus, jobs)
2521
2622 val distribution: Map <Annotation , CorpusDistribution > get() = distributionCache.readOrCreate()
2723 private val distributionFile = dir.resolve(DISTRIBUTION_FILE )
@@ -46,6 +42,6 @@ class JobEvaluations(
4642
4743 companion object {
4844 private const val DISTRIBUTION_FILE = " distribution.json"
45+ const val DOCUMENTS_FOLDER = " documents"
4946 }
50-
5147}
0 commit comments