Package com.simplidh.api
Interface ITransformR
public interface ITransformR
Transformation operation builder. By default, the source and target languages
will have already been set through the API factory. You can change them
at any time through the respective methods.
By default,
iteration count will be 1,
formality is set to formal,
source and target language will be identical and have already been set
- Author:
- Phillip Austerfield
-
Method Summary
Modifier and TypeMethodDescriptionaddCategory
(String sCategory) Add a single category (if necessary and available)Clear categoriessetCategories
(String[] categories) Set categories (if available)setFormality
(String sLevel) Set formality (default is "formal")setIterations
(int nIterations) Set the number of iterations (default is 1)setSourceLanguage
(String sLanguage) Set input text source language (if different from target language)setTargetLanguage
(String sLanguageCode) Set the target language.Create a single text blockPerform the operation and obtain a result list
-
Method Details
-
setTargetLanguage
Set the target language.- Parameters:
sLanguageCode
-- Returns:
-
setIterations
Set the number of iterations (default is 1)- Parameters:
nIterations
-- Returns:
-
setFormality
Set formality (default is "formal")- Parameters:
sLevel
-- Returns:
-
setSourceLanguage
Set input text source language (if different from target language)- Parameters:
sLanguage
-- Returns:
-
setCategories
Set categories (if available)- Parameters:
categories
-- Returns:
-
addCategory
Add a single category (if necessary and available)- Parameters:
sCategory
-- Returns:
-
clearCategories
Clear categories- Returns:
-
tranform
Perform the operation and obtain a result list- Parameters:
sText
- Input Text- Returns:
- List of Paragraphs
- Throws:
IllegalStateException
-
toString
Create a single text block- Parameters:
vsResult
- ParagraphssDelimiter
- Delimiter- Returns:
-