Assets/Watson/Scripts/Services/SpeechToText/SpeechToText.cs
/// <summary>
/// Deletes a custom word from a custom language model. You can remove any word that you added to the custom model's words resource via any means. However, if the word also exists in the service's base vocabulary, the service removes only the custom pronunciation for the word; the word remains in the base vocabulary.
/// Removing a custom word does not affect the custom model until you train the model with the POST /v1/customizations/{customization_id}/train method.Only the owner of a custom model can use this method to delete a word from the model.
/// Note: This method is currently a beta release that is available for US English only.
/// </summary>
/// <param name="callback">The callback.</param>
/// <param name="customizationID">The customization ID to be deleted.</param>
/// <param name="customData">Optional customization data.</param>
/// <returns></returns>
Deletes a custom word from a custom language model. You can remove any word that you added to the custom model's words resource via any means. However, if the word also exists in the service's base vocabulary, the service removes only the custom pronunciation for the word; the word remains in the base vocabulary.
Removing a custom word does not affect the custom model until you train the model with the POST /v1/customizations/{customization_id}/train method.Only the owner of a custom model can use this method to delete a word from the model.
Note: This method is currently a beta release that is available for US English only.
Deletes a custom word from a custom language model . You can remove any word that you added to the custom model ' s words resource via any means . However if the word also exists in the service ' s base vocabulary the service removes only the custom pronunciation for the word ; the word remains in the base vocabulary . Removing a custom word does not affect the custom model until you train the model with the POST / v1 / customizations / { customization_id } / train method . Only the owner of a custom model can use this method to delete a word from the model . Note : This method is currently a beta release that is available for US English only .
public bool DeleteCustomWord(OnDeleteCustomWordCallback callback, string customizationID, string word, string customData = default(string))
		{
			if (callback == null)
				throw new ArgumentNullException("callback");
			if (string.IsNullOrEmpty(customizationID))
				throw new ArgumentNullException("A customizationID is required for DeleteCustomWord");
			if (string.IsNullOrEmpty(word))
				throw new ArgumentNullException("A word to delete is requried for DeleteCustomWord");
			DeleteCustomWordRequest req = new DeleteCustomWordRequest();req.Callback = callback;
			req.CustomizationID = customizationID;
			req.Word = word;
			req.Data = customData;
			req.Delete = true;
			req.OnResponse = OnDeleteCustomWordResp;
			string service = "/v1/customizations/{0}/words/{1}";
			RESTConnector connector = RESTConnector.GetConnector(SERVICE_ID, string.Format(service, customizationID, word));
			if (connector == null)
				return false;
			return connector.Send(req);
		}
public bool DeleteCustomWord ( OnDeleteCustomWordCallback callback , string customizationID , string word , string customData = default ( string ) ) { if ( callback == null ) throw new ArgumentNullException ( " " ) ; if ( string . IsNullOrEmpty ( customizationID ) ) throw new ArgumentNullException ( " " ) ; if ( string . IsNullOrEmpty ( word ) ) throw new ArgumentNullException ( " " ) ; DeleteCustomWordRequest req = new DeleteCustomWordRequest ( ) ; req . Callback = callback ; req . CustomizationID = customizationID ; req . Word = word ; req . Data = customData ; req . Delete = true ; req . OnResponse = OnDeleteCustomWordResp ; string service = " " ; RESTConnector connector = RESTConnector . GetConnector ( SERVICE_ID , string . Format ( service , customizationID , word ) ) ; if ( connector == null ) return false ; return connector . Send ( req ) ; }
Deletes a custom word from a custom language model.
Deletes a custom word from a custom language model .
None
callback
OnDeleteCustomWordCallback
None
customizationID
string
The customization ID to be deleted.
The customization ID to be deleted .
word
string
customData
string
Optional customization data.
Optional customization data .