Answer
- cssType: string · Css Selector
_selector requiredThe CSS selector that uniquely identifies the answer paragraph node in the original HTML content. This css selector matches exactly one HTML node that contains the answer paragraph. In order to be as unambiguous as possible, the returned CSS selector is in the form of a series of nth-child selectors starting from
:rootnode (which is usually the<html>). For example,:root > div:nth-child(1) > p:nth-child(2). This selector means the answer paragraph is a
<p>tag that is the second child of a<div>node, which is in turn, the first child of the:rootnode.This CSS selector is useful when you want to make the answer paragraph stand out from the rest of the document. For example, the following JQuery code turns the background color of the answer paragraph to yellow:
$(answer.css_selector).css("background-color", "yellow"); - probabilityType: number · Probabilitymin:0max:1required
The probability this paragraph can sufficiently answer the user's question (from 0.0 to 1.0).
- textType: string · Textrequired
The plain text version of answer paragraph.
- htmlType: string · Html
The answer paragraph in its original html tag, i.e. or the
outerHTMLof the answer paragraph node.
