Open
Description
Currently, the results from the API is in this form:
{
"result": "Today 's weather is beautiful\nToday is \nToday 's \nThis day \nThe weather \nToday , ",
"attn": [
1,
1,
1,
1
],
"partial": "",
"ppl": 3.230648083472593,
"avg": -1.172682762145996
}
While this works for our case, it would be great to restructure it:
- "result" can be two lists - "full_sentence": [f1] and "part_sentence: [p1, p2, p3, ...]. The length of each list is controlled by Add option for number of suggestions #22
- "attn" can be restructured so that it makes sense independently. Maybe add the source sentence as well in the output?
- "ppl" and "avg" can be moved into a "metrics" section as both represent a way to measure the output.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment