Class: SimplifyService

SimplifyService()

Paraphrase and Simplify are available as two different flavors of the same module. While the Paraphrase module attempts to change the wording while keeping the same level of complexity, the Simplify module outputs more commonly used words without altering the meaning of the original text.

Constructor

new SimplifyService()

Source:

Methods

call(user, text, engineopt) → {Promise.<Object>}

Parameters:
Name Type Attributes Default Description
user string The ID of the user accessing the Soffos API. Soffos assumes that the owner of the api is an application (app) and that app has users. Soffos API will accept any string.
text string Text to be paraphrased/simplified.
engine string <optional>
null The LLM engine to be used.
Source:
Returns:
paraphrase - the paraphrased text
"simplify": true
Type
Promise.<Object>

setInputConfigs(name, text, engineopt)

Parameters:
Name Type Attributes Default Description
name string Reference name of this Service. It will be used by the Pipeline to reference this Service.
text string | InputConfig Text to be paraphrased/simplified.
engine string <optional>
null The LLM engine to be used.
Source: