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

Add missing param scores on ml.put_trained_model_vocabulary #2354

Closed
wants to merge 2 commits into from

Conversation

dolaru
Copy link
Member

@dolaru dolaru commented Oct 30, 2023

This adds the missing scores parameter that was introduced in v8.9.0.

Docs say:

(Optional, array) Vocabulary value scores used by sentence-piece tokenization. Must have the same length as vocabulary. Required for unigram sentence-piece tokenized models like XLMRoberta and T5.

This adds the missing `scores` parameter that was introduced in v8.9.0.

[Docs](https://www.elastic.co/guide/en/elasticsearch/reference/8.9/put-trained-model-vocabulary.html#ml-put-trained-model-vocabulary-request-body):
> (Optional, array) Vocabulary value scores used by sentence-piece tokenization. Must have the same length as vocabulary. Required for unigram sentence-piece tokenized models like XLMRoberta and T5.
@dolaru dolaru requested a review from pquentin October 30, 2023 17:34
@dolaru dolaru self-assigned this Oct 30, 2023
@dolaru
Copy link
Member Author

dolaru commented Oct 30, 2023

@pquentin Lint & docs failures are unrelated to my PR. Both complaining about aiohttp:

Failed to build aiohttp
ERROR: Could not build wheels for aiohttp, which is required to install pyproject.toml-based projects

@pquentin
Copy link
Member

Hey @dolaru, I'm working on the CI fixes. That said, the code you changed is auto-generated from https://github.com/elastic/elasticsearch-specification/blob/main/specification/ml/put_trained_model_vocabulary/MlPutTrainedModelVocabularyRequest.ts which is the file that should be updated instead. Are you interested in submitting a fix there?

@dolaru dolaru closed this Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants