agatha.topic_query.aux_result_data module

This module is responsible for adding auxiliary helper data to the result proto

agatha.topic_query.aux_result_data.add_topical_network(result, topic_model, dictionary, graph_db, bow_db)

Adds the topical_network field to the result proto. Creates this network by the weighted jacquard of topics.

The source and target words are going to be assigned indices -1 and -2.

Return type

None

agatha.topic_query.aux_result_data.estimate_plaintext_from_graph_key(graph_key, graph_db, bow_db, num_sent_to_check=100)

Given a graph key, get the most likely plaintext word associated with it. For instance, given “l:noun:cancer” or “m:d009369” we should get something like “cancer”

Return type

Optional[str]