Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 981fa64

Browse files
committed
Filled out doc comment.
1 parent 137802a commit 981fa64

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

text.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ def add_sequence(self, words):
105105
self.add(tuple(words[i:i+n]))
106106

107107
def samples(self, nwords):
108-
"""Build up a random sample of text n words long, using the"""
108+
"""Build up a random sample of text nwords words long, using
109+
the conditional probability given the n-1 preceding words."""
109110
n = self.n
110111
nminus1gram = ('',) * (n-1)
111112
output = []

0 commit comments

Comments
 (0)