Skip to content

Commit

Permalink
added category class for dataset categories and labels
Browse files Browse the repository at this point in the history
  • Loading branch information
johnhenning committed Mar 10, 2020
1 parent 67926a4 commit f11b1be
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions frater/category/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .category import Category
10 changes: 10 additions & 0 deletions frater/category/category.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from dataclasses import dataclass

from dataclasses_json import DataClassJsonMixin


@dataclass
class Category(DataClassJsonMixin):
index: int = 0
label: str = ''
dataset: str = ''
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setup(
name='frater',
version='0.3.1.4',
version='0.3.1.5',
packages=packages,
license='MIT',
url='https://github.com/frater-sdk/frater',
Expand Down

0 comments on commit f11b1be

Please sign in to comment.