Skip to content

Finding a Candidate List for a Website #26

Answered by xhluca
aswilkinson12 asked this question in Q&A
Discussion options

You must be logged in to vote

The function build_records_for_single_turn used in modeling.dmr.processing shows how to take a replay and turn object to format the query and list of candidate elements:

def build_records_for_single_turn(
turn, replay, format_intent_input, uid_key, max_neg=None, only_allow_valid_uid=True
) -> List[dict]:
"""
This function will build a list of dictionaries, each of which is a record
for a single turn. Each record has the following keys:
- query: the dialogue history, used as a query for training the model
- doc: concise representation of HTML element used as doc for training

Replies: 1 comment 19 replies

Comment options

You must be logged in to vote
19 replies
@xhluca
Comment options

@georgel
Comment options

@matbee-eth
Comment options

@tupini07
Comment options

@xhluca
Comment options

Answer selected by xhluca
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants
Converted from issue

This discussion was converted from issue #25 on April 10, 2024 01:18.