inmt icon indicating copy to clipboard operation
inmt copied to clipboard

Restructuring the results

Open SebastinSanty opened this issue 4 years ago • 0 comments

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 #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.

SebastinSanty avatar Feb 08 '21 10:02 SebastinSanty