Answer Yes/No Question about Text

This task answers a yes/no question about a provided text and returns true or false.

Input

This task answers a yes/no question about a provided text and returns true or false.

[1.0.0]:
First Version
VersionAI ModelCreatedLink
1.0.030.05.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

  • text (Text): The text which is used for the question
  • question (Question): The question to answer
  • Call the REST API by cURL
    curl -v -H "Authorization: Bearer PERSONAL_ACCESS_TOKEN" https://api.anysolve.ai/rest/v1/u-ba835df8268fc301-answer-yesno-question-about-text/1.0.0?text=It%20is%20a%20hot%20day.%20Maria%20is%20on%20her%20way%20to%20the%20lake.%20She%20will%20meet%20her%20friends%20there.&question=Is%20the%20main%20character%20of%20the%20text%20female%3F
  • 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-ba835df8268fc301-answer-yesno-question-about-text','1.0.0', {'text': 'It is a hot day. Maria is on her way to the lake. She will meet her friends there.', 'question': 'Is the main character of the text female?'})
    print(res)
  • Coming soon: Within AnySolve ChatComplete prompts you can use the following command to execute the task:
    /run('u-ba835df8268fc301-answer-yesno-question-about-text','1.0.0', text='It is a hot day. Maria is on her way to the lake. She will meet her friends there.', question='Is the main character of the text female?')