code: def get_writemath_results(self):
          
          results = []
          for hyp in self.hypotheses:
              symbols = []
              for sym in hyp['symbols']:
                  symbols.append({'id': sym['symbol'].split(';')[0],
                                  'probability': sym['probability']})
              results.append({'probability': float(hyp['probability']),
                              'segmentation': hyp['segmentation'],
                              'symbols': symbols})
          return results
docs: Get the result in the format
          [{'probability': 0.987,
            'segmentation': [[0, 1], [2, 4], [3]]}   // index of the stroke
            'symbols': [{'id': 456,  // on write-math.com
                         'probability': 0.123},
                        {'id': 456,
                         'probability': 0.999},  // The sum does not have to be 1
                        {'id': 195,
                         'probability': 0.0001}]
            },
           {...}  // another hypothesis
          ]