Adding additional json object level to PrecisionAtN rendering
This commit is contained in:
parent
11116db337
commit
8daec109fc
|
@ -153,9 +153,11 @@ public class PrecisionAtN extends RankedListQualityMetric {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {
|
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {
|
||||||
|
builder.startObject();
|
||||||
builder.startObject(NAME);
|
builder.startObject(NAME);
|
||||||
builder.field(SIZE_FIELD.getPreferredName(), this.n);
|
builder.field(SIZE_FIELD.getPreferredName(), this.n);
|
||||||
builder.endObject();
|
builder.endObject();
|
||||||
|
builder.endObject();
|
||||||
return builder;
|
return builder;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue