Skip to content

Commit

Permalink
Merge pull request #52 from WSE-research/explanationPipelineAdjustment
Browse files Browse the repository at this point in the history
Adjusted pipeline explanation
  • Loading branch information
dschiese authored Aug 21, 2024
2 parents 2188f5b + 15d3a99 commit 60f1f5c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</parent>
<groupId>com.wse</groupId>
<artifactId>qanary-explanation-service</artifactId>
<version>3.7.0</version>
<version>3.8.0</version>
<name>Qanary explanation service</name>
<description>Webservice for rule-based explanation of QA-Systems as well as specific components</description>
<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,9 @@ else if (data.getComponent() != "" || data.getComponent() != null){ // component
return explanationTemplate
.replace("${component}", data.getComponent())
.replace("${components}", components)
.replace("${question}", qanaryRepository.getQuestionFromQuestionId(data.getQuestionId() + "/raw"))
.replace("${questionId}", data.getQuestionId())
.replace("${graph}", data.getGraph())
.replace("${componentsAndExplanations}", composeComponentExplanations(data.getExplanations()));
}
else { // only questionId and graph are provided // System-based explanation
Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/explanations/pipeline_component/en_prefix
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
The pipeline component ${component} has executed the components ${components} with the following explanations:
The pipeline component ${component} has received the question ${question} that is represented with the questionId "${questionId}". It executed the
components ${components} on the knowledge graph "${graph}" with the following explanations:

${componentsAndExplanations}

0 comments on commit 60f1f5c

Please sign in to comment.