infineac.process_event.check_if_keyword_align_qa#
- infineac.process_event.check_if_keyword_align_qa(qa: list[dict[str, int | str]], keywords: list[str]) int[source]#
Function to check if a keyword occurs in a question and the answer to that.
- Parameters:
qa (list[dict[str, int | str]]) – Q&A section of an event.
keywords (list[str]) – Keywords to check for.
- Returns:
Number of times a keyword occurs in a question and NOT in the answer to that.
- Return type:
int