# Path: segeval/util/lang.py
# def enum(*sequential, **named):
#     '''
#     http://stackoverflow.com/a/1695250/2134
#     '''
#     enums = dict(zip(sequential, range(len(sequential))), **named)
#     return type('Enum', (), enums)


import json
import os
import codecs
from segeval.util.lang import enum
    from segeval.data import Dataset, DataIOError
'''
JSON output module (for general JSON writing operations).

.. moduleauthor:: Chris Fournier <chris.m.fournier@gmail.com>
'''
from __future__ import absolute_import


Field = enum(
    # Property fields
    segmentation_type='segmentation_type',
    # Structural fields
    items='items'
)


# Path: segeval/util/lang.py
# def enum(*sequential, **named):
#     '''
#     http://stackoverflow.com/a/1695250/2134
#     '''
#     enums = dict(zip(sequential, range(len(sequential))), **named)
#     return type('Enum', (), enums)


# Path: segeval/data/jsonutils.py
import json
import os
import codecs
from segeval.util.lang import enum
    from segeval.data import Dataset, DataIOError

'''
JSON output module (for general JSON writing operations).

.. moduleauthor:: Chris Fournier <chris.m.fournier@gmail.com>
'''
from __future__ import absolute_import


Field = enum(
    # Property fields
    segmentation_type='segmentation_type',
    # Structural fields
    items='items'
)


SegmentationType = enum(linear='linear')