Skip to content

Commit

Permalink
Pretty print persisted regex son
Browse files Browse the repository at this point in the history
  • Loading branch information
tmbo committed Jul 6, 2017
1 parent 71c0780 commit 720b488
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rasa_nlu/featurizers/regex_featurizer.py
Expand Up @@ -108,7 +108,7 @@ def persist(self, model_dir):
if self.known_patterns:
regex_file = os.path.join(model_dir, "regex_featurizer.json")
with io.open(regex_file, 'w') as f:
f.write(str(json.dumps(self.known_patterns)))
f.write(str(json.dumps(self.known_patterns, indent=4)))
return {"regex_featurizer": "regex_featurizer.json"}
else:
return {"regex_featurizer": None}

0 comments on commit 720b488

Please sign in to comment.