Flip Active and Passive Voices

Easily switch between active and passive voice sentences.

Input

Description

This model transforms sentences between active voice and passive voice.

Applications

Useful for interconverting between active and passive voice sentences.

How to use the task

Simply enter your sentence, and the model will convert it to the opposite voice - from active to passive or from passive to active.

[1.0.0]:
First version
VersionAI ModelCreatedLink
1.0.024.07.2023

API

The REST API allows you to call the tool with the same costs as when running the tool. Please generate an Personal access token before using the REST API.

Parameters

  • sentence (Sentence): Enter a sentence in either active or passive voice.
  • Call the REST API by cURL
    curl -v -H "Authorization: Bearer PERSONAL_ACCESS_TOKEN" https://api.anysolve.ai/rest/v1/u-806494eb1fbfb39f-flip-active-and-passive-voices/1.0.0?sentence=The%20ball%20is%20being%20chased%20by%20the%20dog.%20
  • Install the package with pip
    python3 -m pip install anysolve
  • Run in python3
    import os
    from anysolve import AnySolve
    anysolve_token = os.environ.get('ANYSOLVE_PERSONAL_ACCESS_TOKEN') # Resolve your personal access token here
    client = AnySolve(anysolve_token)
    res = client.run('u-806494eb1fbfb39f-flip-active-and-passive-voices','1.0.0', {'sentence': 'The ball is being chased by the dog. '})
    print(res)
  • Coming soon: Within AnySolve ChatComplete prompts you can use the following command to execute the task:
    /run('u-806494eb1fbfb39f-flip-active-and-passive-voices','1.0.0', sentence='The ball is being chased by the dog. ')

Task infos

Author: AnySolve
Status: Published
Version: 1.0.0
Runs: 22 times
Favorites: 0
Average costs: 2 Credits (0.002 EUR)
Created: 24.07.2023