Skip to content

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

Closed

Description

@yuyaito

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.

Activity

  1. germanattanasio commented on Jan 23, 2019

    @germanattanasio
    Contributor

    Please provide a set of reproducible steps.

  2. yuyaito commented on Jan 25, 2019

    @yuyaito
    Author

    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\"}
    
  3. yuyaito commented on Mar 5, 2019

    @yuyaito
    Author

    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?

  4. mamoonraja commented on Mar 5, 2019

    @mamoonraja
    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.

  5. watson-github-bot commented on Mar 13, 2019

    @watson-github-bot
    Contributor

    🎉 This issue has been resolved in version 0.13.0 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions