Question-Answering

FREEMIUM
От mail@webknox.com | Обновлено 25 days ago | Communication
Популярность

7 / 10

Задержка

45,049ms

Уровень обслуживания

70%

Health Check

N/A

Назад ко всем обсуждениям

Where is Portland?

Rapid account: Clydgate
clydgate
3 years ago

What am I doing wrong here? I got similar garbage answers when my question was “Who was Alexander Hamilton?”

import requests

url = “https://webknox-question-answering.p.rapidapi.com/questions/answers

querystring = {“question”:“Where is Portland?”,“answerLookup”:“true”,“answerSearch”:“true”}

headers = {
… [[deleted]]
… }

response = requests.request(“GET”, url, headers=headers, params=querystring)

print(response.text)
{“answer”:"<p>Portland is in th. Portland is in Mu. Portland Is in Pe.</p>\n\n<p>Portland is in WA. Portland is in or. Portland Is in Tu.</p>\n\n<p>Portland is at it. Portland is at th. Portland is at od.</p>\n\n<p>Portland is at ri. Portland is at 22. Portland is at a.</p>\n\n<p>Portland is at Yo. Portland is at wa. Portland is at Tr.</p>\n\n"}

Присоединяйтесь к обсуждению – добавьте комментарий ниже:

Войдите / Зарегистрируйтесь, чтобы публиковать новые комментарии