Add set-capable json dumper.
This commit is contained in:
parent
e51ba71ec5
commit
4d7afb0174
4
naive-nlu/tree_nlu/utils/json_dumper.py
Normal file
4
naive-nlu/tree_nlu/utils/json_dumper.py
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
def dumper(obj):
|
||||||
|
if isinstance(obj, set):
|
||||||
|
return list(obj)
|
||||||
|
return obj
|
Loading…
Reference in New Issue
Block a user