Permalink
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (14 sloc) 397 Bytes
metadata:
title: Export to JSON
example start: 2
example end: 2
documentation: "https://docassemble.org/docs/ml.html#SimpleTextMachineLearner.export_training_set"
---
modules:
- docassemble.base.util
---
initial: True
code: |
ml = SimpleTextMachineLearner('demo')
the_data = ml.export_training_set(output_format='json')
response(response=the_data, content_type='application/json')