Skip to content

Commit

Permalink
Import schemas beforehand on templates/template.py (SEACrowd#644)
Browse files Browse the repository at this point in the history
* add import statement for schemas

* add import statement for schemas
  • Loading branch information
muhammadravi251001 authored Apr 15, 2024
1 parent c518ad1 commit 94d34c6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions templates/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@

import datasets

from seacrowd.utils import schemas
from seacrowd.utils.configs import SEACrowdConfig
from seacrowd.utils.constants import Tasks, Licenses

Expand Down Expand Up @@ -75,7 +76,7 @@
# Some datasets may also have custom licenses. In this case, simply put f'{Licenses.OTHERS.value} | {FULL_LICENSE_TERM}' into `_LICENSE`
_LICENSE = "" # example: Licenses.MIT.value, Licenses.CC_BY_NC_SA_4_0.value, Licenses.UNLICENSE.value, Licenses.UNKNOWN.value

# TODO: Add a _LOCAL flag to indicate whether the data cannot be sourced from a public link
# TODO: Add a _LOCAL flag to indicate whether the data cannot be sourced from a public link
# E.g. the dataset requires signing a specific term of use, the dataset is sent through email, etc.
_LOCAL = False

Expand All @@ -101,7 +102,7 @@
_SEACROWD_VERSION = "1.0.0"


# TODO: Name the dataset class to match the script name using PascalCase instead of snake_case.
# TODO: Name the dataset class to match the script name using PascalCase instead of snake_case.
# optional: class name can append "Dataset" as suffix to provide better clarity (e.g. OSCAR 2201 --> Oscar2201Dataset/Oscar2201)
class NewDataset(datasets.GeneratorBasedBuilder):
"""TODO: Short description of my dataset."""
Expand Down

0 comments on commit 94d34c6

Please sign in to comment.