Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (14 sloc) 400 Bytes
metadata:
title: Export to YAML
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(group_id='demo')
the_data = ml.export_training_set(output_format='yaml')
response(response=the_data, content_type='text/plain')