Skip to contents

Remove rows that should not count in the distance computation and recalculate distances.

Usage

correctDistance(cws, distance_corrector_func)

Arguments

cws

Dataframe as outputted by listContextwords (semasioFlow Python module).

distance_corrector_func

Function to be applied to the word variable to remove irrelevant lines.

Value

Tibble with the context word ids and the corrected distance as conc_distance.