Replies: 1 comment
-
|
+1 to the proposal! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Current problem:
In Croissant JSON-LD, you can write:
{ "dataType": [ "sc:URL", "wd:Q3985153" ] }So types in Croissant mix:
What we've implemented so far:
So far,
sc:Fieldhave two attributes:field.data_typesis a mirror of the JSON syntax. So in the previous example:field.data_typeis the actual programmatic type for scalars, or the semantic type for more complex features (image). Programmatic types use built-in Python types (str, bool, int). So in the previous example:Proposal:
We propose to define
mlc.dtypesbased on np-dtypes:On client-side, this allows to write:
Beta Was this translation helpful? Give feedback.
All reactions