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 8 commits into
base: master
Choose a base branch
from

Conversation

wasihussain914
Copy link

Description

Edited corpus functions for random speaker/conversation / utterance functions.
Added

Edited corpus functions to add random speaker, conversation, and utterance selection functionality. These functions enable random selection using reservoir sampling with optional filtering criteria (selector).

feature

Motivation and Context

This change was introduced to enhance the usability of the corpus by allowing users to select random speakers, conversations, and utterances with customizable filtering conditions. It improves functionality and aligns with existing corpus methods like iter_utterances.

How has this been tested?

Imported convokit locally in machine to test new functions. Tested all three functions -- speaker, utterance and conversation.

Other information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants