Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include CroissantVersion for 1.1 specs #806

Merged
merged 3 commits into from
Feb 12, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion python/mlcroissant/mlcroissant/_src/core/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class CroissantVersion(enum.Enum):

V_0_8 = "http://mlcommons.org/croissant/0.8"
V_1_0 = "http://mlcommons.org/croissant/1.0"
V_1_1 = "http://mlcommons.org/croissant/1.1"

@classmethod
def from_jsonld(cls, ctx: Context, jsonld: Any) -> CroissantVersion:
Expand Down Expand Up @@ -73,7 +74,7 @@ class Context:
mapping: Mapping[str, epath.Path] = dataclasses.field(
default_factory=dict, hash=False
)
conforms_to: CroissantVersion = CroissantVersion.V_1_0
conforms_to: CroissantVersion = CroissantVersion.V_1_1
is_live_dataset: bool | None = None

def __post_init__(self):
Expand Down
Loading