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

Cannot Delete Custom Words of Full-Size (Double Byte) Alphanumeric. #49

Closed
yuyaito opened this issue Jan 23, 2019 · 5 comments
Closed
Labels

Comments

@yuyaito
Copy link

yuyaito commented Jan 23, 2019

Ruby-sdk cannot delete custom word of Full-size (double byte) alphanumeric.
I research this issue, and discover to change Full-size alphanumeric to Half-size alphanumeric for normalization.

Base Model: ja-JP_BroadbandModel
Target word example: ABC

Please research and fix its issue.

@germanattanasio
Copy link
Contributor

Please provide a set of reproducible steps.

@yuyaito
Copy link
Author

yuyaito commented Jan 25, 2019

Additional information about this issue as below.

  1. Custom word list.
curl -X GET -u "apikey:credential" "https://stream.watsonplatform.net/speech-to-text/api/v1/customizations/customization_id/words"
{"words": [
  {
     "display_as": "ABC",
     "sounds_like": ["エービーシー"],
     "count": 1,
     "source": ["user"],
     "word": "ABC"
  }
]}
  1. Source code for deleting above word.
       speech_to_text = IBMWatson::SpeechToTextV1.new(
         username: watson_user,
         password: watson_password,
         url: watson_url
       )

       speech_to_text.add_default_headers(headers: DEFAULT_HEADER)

       speech_models = speech_to_text.delete_word(
         customization_id: customization_id,
         word_name: 'ABC'
       )
  1. Error message
#<WatsonApiException: Error: Invalid value for word 'ABC', Code: 400, Information: {\"code_description\"=>\"Bad Request\"}

@yuyaito
Copy link
Author

yuyaito commented Mar 5, 2019

Please answer the question about this issue.

Q1. Please tell me the progress for this issue.

Q2. Could you understand the reason of problem?

Q3. When is the release for fix this issue?

@mamoonraja
Copy link
Member

Hi, we have an issue and a PR open to fix the issue in Ruby http library httprb/http#533, we will update the SDK once the PR is merged.

@watson-github-bot
Copy link
Member

🎉 This issue has been resolved in version 0.13.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@mamoonraja mamoonraja mentioned this issue Mar 13, 2019
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

4 participants