Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
metadata:
title: Export to JSON
documentation: "https://docassemble.org/docs/ml.html#SimpleTextMachineLearner.export_training_set"
---
initial: True
code: |
ml = SimpleTextMachineLearner('demo')
the_data = ml.export_training_set(output_format='json')
response(response=the_data, content_type='application/json')