addok/helpers/collectors.py
def extend_results_extrapoling_relations(helper):
    """Try to extract the bigger group of interlinked tokens.

    Should generally be used at last in the collectors chain.
    """
    if not helper.bucket_dry:
        return  # No need.
    tokens = set(helper.meaningful + helper.common)
    for relation in _extract_manytomany_relations(tokens):
        helper.add_to_bucket([t.db_key for t in relation])
        if helper.bucket_overflow:
            break
    else:
        helper.debug('No relation extrapolated.')
def extend_results_extrapoling_relations(helper):
    if not helper.bucket_dry:
        return  # No need.
    tokens = set(helper.meaningful + helper.common)
    for relation in _extract_manytomany_relations(tokens):
        helper.add_to_bucket([t.db_key for t in relation])
        if helper.bucket_overflow:
            break
    else:
        helper.debug('No relation extrapolated.')
def extend_results_extrapoling_relations ( helper ) : if not helper . bucket_dry : return # No need. tokens = set ( helper . meaningful + helper . common ) for relation in _extract_manytomany_relations ( tokens ) : helper . add_to_bucket ( [ t . db_key for t in relation ] ) if helper . bucket_overflow : break else : helper . debug ( 'No relation extrapolated.' )
Try to extract the bigger group of interlinked tokens.

    Should generally be used at last in the collectors chain.
Try to extract the bigger group of interlinked tokens .