Add set-capable json dumper.
This commit is contained in:
parent
e51ba71ec5
commit
4d7afb0174
1 changed files with 4 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue