-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Renamed passage evaluation components, added keyterm evaluation
- Loading branch information
Showing
13 changed files
with
69 additions
and
9 deletions.
There are no files selected for viewing
Binary file not shown.
3 changes: 2 additions & 1 deletion
3
src/main/resources/helloqa/collection/decorated-collection-reader.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
inherit: fs.fs-collection-reader | ||
|
||
decorators: | | ||
- inherit: helloqa.collection.gs-decorator | ||
- inherit: helloqa.collection.keyterm-gs-decorator | ||
- inherit: helloqa.collection.passage-gs-decorator | ||
persistence-provider: | | ||
inherit: helloqa.db.local-persistence-provider |
4 changes: 4 additions & 0 deletions
4
src/main/resources/helloqa/collection/keyterm-gs-decorator.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
class: edu.cmu.lti.oaqa.framework.eval.KeytermGoldStandardDecorator | ||
|
||
persistence-provider: | | ||
inherit: helloqa.collection.keyterm-gs-persistence-provider |
4 changes: 4 additions & 0 deletions
4
src/main/resources/helloqa/collection/keyterm-gs-persistence-provider.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
class: edu.cmu.lti.oaqa.framework.eval.gs.KeytermGoldStandardFilePersistenceProvider | ||
DataSet: GUTENBERG | ||
PathPattern: classpath:/gs/small.keyterm | ||
LineSyntax: (\d+)\|(\d+) (\d+)\|(.*) |
2 changes: 1 addition & 1 deletion
2
...rces/helloqa/collection/gs-decorator.yaml → ...loqa/collection/passage-gs-decorator.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
class: edu.cmu.lti.oaqa.framework.eval.PassageDatasetDecorator | ||
|
||
persistence-provider: | | ||
inherit: helloqa.collection.gs-persistence-provider | ||
inherit: helloqa.collection.passage-gs-persistence-provider |
File renamed without changes.
5 changes: 5 additions & 0 deletions
5
src/main/resources/helloqa/eval/keyterm-aggregator-consumer.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class: edu.cmu.lti.oaqa.framework.eval.keyterm.KeytermEvalConsumer | ||
name: keyterm-evaluator | ||
|
||
aggregators: | | ||
- inherit: helloqa.eval.keyterm-aggregator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
class: edu.cmu.lti.oaqa.framework.eval.retrieval.RetrievalEvalAggregator | ||
persistence-provider: | | ||
inherit: helloqa.eval.keyterm-evaluation-persistence-provider |
20 changes: 20 additions & 0 deletions
20
src/main/resources/helloqa/eval/keyterm-evaluation-persistence-provider.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
class: edu.cmu.lti.oaqa.framework.eval.retrieval.impl.JdbcRetrievalEvalPersistenceProvider | ||
select-passage-aggregates-query: | | ||
SELECT experimentId, traceId, relevant_retrieved, retrieved, | ||
relevant, avep, count, binary_relevant, stage | ||
FROM keyterm_aggregates WHERE experimentId = ? AND stage = ? | ||
insert-f-measure-eval-query: | | ||
INSERT INTO keyterm_eval | ||
(experimentId, traceId, evaluator, prec, recall, f1, | ||
map, binary_recall, count, stage, traceHash) | ||
VALUES (?,?,?,?,?,?,?,?,?,?,?) | ||
delete-f-measure-eval-query: | | ||
DELETE FROM keyterm_eval WHERE experimentId = ? AND stage = ? | ||
insert-passage-aggregates-query: | | ||
INSERT INTO keyterm_aggregates (experimentId, traceId, | ||
aggregator, relevant_retrieved, retrieved, relevant, | ||
avep, count, binary_relevant, sequenceId, stage, traceHash) | ||
VALUES (?,?,?,?,?,?,?,?,?,?,?,?) | ||
delete-passage-aggr-eval-query: | | ||
DELETE FROM keyterm_aggregates | ||
WHERE experimentId = ? AND traceHash = ? AND aggregator = ? AND sequenceId = ? |
4 changes: 4 additions & 0 deletions
4
src/main/resources/helloqa/eval/keyterm-evaluator-consumer.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
class: edu.cmu.lti.oaqa.framework.eval.TraceConsumer | ||
name: retrieval-measures-evaluator | ||
experiment-listeners: | | ||
- inherit: helloqa.eval.keyterm-evaluator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
class: edu.cmu.lti.oaqa.framework.eval.retrieval.RetrievalMeasuresEvaluator | ||
persistence-provider: | | ||
inherit: helloqa.eval.keyterm-evaluation-persistence-provider |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
src/main/resources/helloqa/report/keyterm-report-component.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
class: edu.cmu.lti.oaqa.framework.report.DatabaseReportComponentBuilder | ||
keys: evaluator,traceId | ||
headers: Evaluator,Configuration,Precision,Recall,F-1,MAP,Binary Recall,Count | ||
fields: evaluator,traceId,prec,recall,f1,map,binary_recall,count | ||
formats: "%s,%s,%.4f,%.4f,%.4f,%.4f,%.4f,%d" | ||
query: | | ||
SELECT evaluator,traceId,prec,recall,f1,map,binary_recall,count FROM keyterm_eval | ||
WHERE experimentId = ? AND stage = ? | ||