Skip to content

Commit 9cc23ea

Browse files
author
Leo
committed
grammatical changes to documentation for random_speaker
1 parent a64a5e5 commit 9cc23ea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

convokit/model/corpus.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ def random_utterance(self, selector: Optional[Callable[[Utterance], bool]] = Non
417417
count = 0
418418
selected_utterance = None
419419

420-
if selector == None:
420+
if selector is None:
421421
return random.choice(list(self.utterances.values()))
422422
# Iterate over utterances directly from the generator
423423
for utterance in self.iter_utterances():
@@ -438,7 +438,7 @@ def random_conversation(
438438
"""
439439
Get a random Conversation from the Corpus, with an optional selector that filters for Conversations that should be considered.
440440
441-
:param selecter: a (lamda) function that takes a Conversation and returns True or False.(i.e. consider / not consider).
441+
:param selecter: a (lambda) function that takes a Conversation and returns True or False.(i.e. consider / not consider).
442442
By default, the selector considers all Conversations in the Corpus.
443443
:return: a random Conversation that in the Corpus that is considered based on the selector
444444
"""
@@ -465,7 +465,7 @@ def random_speaker(self, selector: Optional[Callable[[Speaker], bool]] = None) -
465465
"""
466466
Get a random Speaker from the Corpus, with an optional selector that filters for Speakers that should be considered.
467467
468-
:param selector: a (lambda) function that takes an Speaker and returns True or False (i.e. consider / not consider).
468+
:param selector: a (lambda) function that takes a Speaker and returns True or False (i.e. consider / not consider).
469469
By default, the selector considers all Speakers in the Corpus.
470470
:return: a random Speaker that in the Corpus that is considered based on the selector.
471471
"""

0 commit comments

Comments
 (0)