Class Tokenization
java.lang.Object
com.alibaba.dashscope.legacy_2x.tokenizers.Tokenization
Deprecated.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncall(HalfDuplexServiceParam param) Deprecated.Call the server to get the whole result, only http protocolvoidcall(HalfDuplexServiceParam param, ResultCallback<TokenizationResult> callback) Deprecated.Call the server to get the result in the callback function.
-
Constructor Details
-
Tokenization
public Tokenization()Deprecated. -
Tokenization
Deprecated.
-
-
Method Details
-
call
public TokenizationResult call(HalfDuplexServiceParam param) throws ApiException, NoApiKeyException, InputRequiredException Deprecated.Call the server to get the whole result, only http protocol- Parameters:
param- The input param of class `HalfDuplexServiceParam`.- Returns:
- The output structure of `TokenizationOutput`.
- Throws:
NoApiKeyException- Can not find api keyInputRequiredException- Missing inputs.ApiException
-
call
public void call(HalfDuplexServiceParam param, ResultCallback<TokenizationResult> callback) throws ApiException, NoApiKeyException, InputRequiredException Deprecated.Call the server to get the result in the callback function.- Parameters:
param- The input param of class `HalfDuplexServiceParam`.callback- The callback to receive response, the template class is `TokenizationOutput`.- Throws:
NoApiKeyException- Can not find api keyApiException- The request failed, possibly due to a network or data error.InputRequiredException- Missing inputs.
-