Skip to content

Commit

Permalink
Final edit of docs after running black
Browse files Browse the repository at this point in the history
  • Loading branch information
wasihussain914 committed Jan 19, 2025
1 parent 1dc6384 commit a351a5e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions convokit/model/corpus.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,8 +410,8 @@ def random_utterance(self, selector: Optional[Callable[[Utterance], bool]] = Non
"""
Get a random Utterance from the Corpus, with an optional selector that filters for Utterances that should be considered.
:param selector: a (lambda) function that takes an Speaker and returns True or False (i.e. consider / not consider).
By default, the selector considers all Utterance in the Corpus.
:param selector: a (lambda) function that takes an Utterance and returns True or False (i.e. consider / not consider).
By default, the selector considers all Utterances in the Corpus.
:return: a random Utterance that in the Corpus that is considered based on the selector.
"""
count = 0
Expand Down Expand Up @@ -439,7 +439,7 @@ def random_conversation(
Get a random speaker object within the corpus that matches the filter.
:param selecter: a (lamda) function that takes a Conversation and returns True or False.(i.e. consider / not consider).
By default, the selector considers all Speakers in the Corpus.
By default, the selector considers all Conversations in the Corpus.
:return: a random Conversation that in the Corpus that is considered based on the selector
"""
count = 0
Expand Down

0 comments on commit a351a5e

Please sign in to comment.