summaryrefslogtreecommitdiffstats
path: root/model-evaluation
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@oath.com>2018-09-17 13:01:55 +0200
committerJon Bratseth <bratseth@oath.com>2018-09-17 13:01:55 +0200
commit28c446a1bd9168ced3e7056599bb2d833824533b (patch)
treea3297634a7699f93568847807daf75610979b7aa /model-evaluation
parent769aec13c58050c6e4edffcbb0f8bfc82d12cb30 (diff)
support 'function' in addition to 'macro' in rank profiles
Diffstat (limited to 'model-evaluation')
-rw-r--r--model-evaluation/src/main/java/ai/vespa/models/evaluation/RankProfilesConfigImporter.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/model-evaluation/src/main/java/ai/vespa/models/evaluation/RankProfilesConfigImporter.java b/model-evaluation/src/main/java/ai/vespa/models/evaluation/RankProfilesConfigImporter.java
index d2fca309a19..7bea2d0825a 100644
--- a/model-evaluation/src/main/java/ai/vespa/models/evaluation/RankProfilesConfigImporter.java
+++ b/model-evaluation/src/main/java/ai/vespa/models/evaluation/RankProfilesConfigImporter.java
@@ -81,11 +81,11 @@ public class RankProfilesConfigImporter {
referencedFunctions.put(reference.get(),
new ExpressionFunction(reference.get().serialForm(), arguments, expression));
}
- else if (property.name().equals("vespa.rank.firstphase")) { // Include in addition to macros
+ else if (property.name().equals("vespa.rank.firstphase")) { // Include in addition to functions
firstPhase = new ExpressionFunction("firstphase", new ArrayList<>(),
new RankingExpression("first-phase", property.value()));
}
- else if (property.name().equals("vespa.rank.secondphase")) { // Include in addition to macros
+ else if (property.name().equals("vespa.rank.secondphase")) { // Include in addition to functions
secondPhase = new ExpressionFunction("secondphase", new ArrayList<>(),
new RankingExpression("second-phase", property.value()));
}