Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 1.21 KB

File metadata and controls

34 lines (25 loc) · 1.21 KB

LinkOpportunity

Properties

Name Type Description Notes
relevance_score float AI-calculated relevance score (0-1)
anchor_text str Suggested anchor text
context str Context where the link should be placed [optional]
source_page PageInfo
target_page PageInfo
reasoning str AI reasoning for the suggestion [optional]

Example

from rankvectors.models.link_opportunity import LinkOpportunity

# TODO update the JSON string below
json = "{}"
# create an instance of LinkOpportunity from a JSON string
link_opportunity_instance = LinkOpportunity.from_json(json)
# print the JSON string representation of the object
print(LinkOpportunity.to_json())

# convert the object into a dict
link_opportunity_dict = link_opportunity_instance.to_dict()
# create an instance of LinkOpportunity from a dict
link_opportunity_from_dict = LinkOpportunity.from_dict(link_opportunity_dict)

[Back to Model list] [Back to API list] [Back to README]