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

Label by text possibly with natural language, without metadata attached #1548

Closed
himorin opened this issue May 25, 2022 · 2 comments
Closed
Labels
pending Issue not yet sent to WG, or raised by tracker tool & needing labels. s:webnn https://webmachinelearning.github.io/webnn/

Comments

@himorin
Copy link
Contributor

himorin commented May 25, 2022

Proposed comment

MLNamedOperands in 7.7. MLGraphBuilder, etc.
https://www.w3.org/TR/2022/WD-webnn-20220520/#api-mlgraphbuilder

typedef record<DOMString, MLOperand> MLNamedOperands;
MLOperand input(DOMString name, MLOperandDescriptor desc);

There is in total 5 defined types as typedef record <DOMString, spec_defined_type>, to label data passed or points in processing by DOMString. As in Example 7, these labels are kind of key to label data, but are also defined when building Graph.

// Execute the compiled graph with the specified inputs.
const inputs = {
  'input1': inputBuffer1,
  'input2': inputBuffer2,
};
const outputs = {'output': outputBuffer};
context.compute(graph, inputs, outputs);

These labels are strongly linked to each Graph wrote as code, and purely used within writing code. But considering some kind of interactive processing tool, like Jupyter or visual trial user interface (e.g. function in IBM DOM, user is required to fill inputs (and possibly outputs) by pairs of these label and user input.
For these use cases, labels in DOMString are required to be displayed at UI, which requires consideration of metadata.

Instructions:

This follows the process at https://w3c.github.io/i18n-activity/guidelines/review-instructions.html

  1. Create the review comment you want to propose by replacing the prompts above these instructions, but LEAVE ALL THE INSTRUCTIONS INTACT

  2. Set a label to identify the spec: this starts with s: followed by the spec's short name. If you are unable to do that, ask a W3C staff contact to help.

  3. Ask the i18n WG to review your comment.

  4. After discussion with the i18n WG, raise an issue in the repository of the WG that owns the spec. Use the text above these instructions as the starting point for that comment, but add any suggestions that arose from the i18n WG. In the other WG's repo, add an 'i18n-needs-resolution' label to the new issue. If you think any of the participants in layout requirements task force groups would be interested in following the discussion, add also the appropriate i18n-*lreq label(s).

  5. Delete the text below that says 'url_for_the_issue_raised', then add in its place the URL for the issue you raised in the other WG's repository. Do NOT remove the initial '§ '. Do NOT use [...](...) notation – you need to delete the placeholder, then paste the URL.

  6. Remove the 'pending' label, and add a 'needs-resolution' tag to this tracker issue.

  7. If you added an *lreq label, add the label 'spec-type-issue', add the corresponding language label, and a label to indicate the relevant typographic feature(s), eg. 'i:line_breaking'. The latter represent categories related to the Language Enablement Index, and all start with i:.

  8. Edit this issue to REMOVE ALL THE INSTRUCTIONS & THE PROPOSED COMMENT, ie. the line below that is '---' and all the text before it to the very start of the issue.


This is a tracker issue. Only discuss things here if they are i18n WG internal meta-discussions about the issue. Contribute to the actual discussion at the following link:

§ url_for_the_issue_raised

@himorin himorin added pending Issue not yet sent to WG, or raised by tracker tool & needing labels. s:webnn https://webmachinelearning.github.io/webnn/ labels May 25, 2022
@xfq
Copy link
Member

xfq commented May 26, 2022

Several minor things:

  • It would be useful to add a link to string-meta
  • DOM should be ODM
  • It would be useful if the link to the IBM ODM document has an English version

@himorin
Copy link
Contributor Author

himorin commented May 26, 2022

closing as not needs-resolution after discussion within i18n.

@himorin himorin closed this as completed May 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending Issue not yet sent to WG, or raised by tracker tool & needing labels. s:webnn https://webmachinelearning.github.io/webnn/
Projects
None yet
Development

No branches or pull requests

2 participants