forked from microsoft/ai-edu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathResult.cs
41 lines (38 loc) · 944 Bytes
/
Result.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace QAClient
{
public class Answers
{
public Answer[] answers { get; set; }
}
public class Answer
{
public string[] questions { get; set; }
public string answer { get; set; }
public float score { get; set; }
public int id { get; set; }
public string source { get; set; }
public object[] metadata { get; set; }
public override string ToString()
{
return string.Format("Answer: {0}, Score:{1}", answer, score);
}
}
/*
{
"answers": [
{
"questions": [
"谁是院长",
"院长是谁",
"老大"
],
"answer": "洪小文",
"score": 50.43,
"id": 2,
"source": "Editorial",
"metadata": []
}
]*/
}