Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added selection filter for random speaker/conversation/utterance corpus functions #268

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
7 changes: 4 additions & 3 deletions convokit/coordination/coordination.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,9 +486,10 @@ def _scores_over_utterances(
target = utt1.speaker
if speaker == target:
continue
speaker, target = Coordination._annot_speaker(
speaker, utt2, split_by_attribs
), Coordination._annot_speaker(target, utt1, split_by_attribs)
speaker, target = (
Coordination._annot_speaker(speaker, utt2, split_by_attribs),
Coordination._annot_speaker(target, utt1, split_by_attribs),
)

speaker_filter = speaker_utterance_selector(utt2, utt1)
target_filter = target_utterance_selector(utt2, utt1)
Expand Down
Loading
Loading