Commit e469d662 authored by Rose Amodia's avatar Rose Amodia
Browse files

Corrected the docstring for the display functions

parent 2b21b6f2
......@@ -32,9 +32,9 @@ class TextPOWHZ():
based on its context
display_concordance(...) Display all the occurrences of a word
with its context
display_likely_next(...) Displays the top most likely next
display_likely_next(...) Display the top most likely next
words
display_likely_previous(...) Displays the top most likely previous
display_likely_previous(...) Display the top most likely previous
words
likely_next(...) Get the most likely word(s) that will
follow a word in the text
......@@ -505,13 +505,13 @@ class TextPOWHZ():
self.likely_n)
def display_likely_next(self, word, n=5, interactive=False):
''' Displays the top most likely next words
''' Display the top most likely next words
Creates a horizontal bar chart of the top n most likely words to
Create a horizontal bar chart of the top n most likely words to
follow the reference word, based on the number of occurrences of
being the next word to follow the reference word in the text,
if interactive is False. Chart is sorted in descending order
based on this count. Otherwise, if interactive is True, displays
based on this count. Otherwise, if interactive is True, display
two columns that allows the user to select the reference word
from the left column; the right column lists the likely next words.
......@@ -575,13 +575,13 @@ class TextPOWHZ():
return ax
def display_likely_previous(self, word, n=5, interactive=False):
''' Displays the top most likely previous words
''' Display the top most likely previous words
Creates a horizontal bar chart of the top n most likely words to
Create a horizontal bar chart of the top n most likely words to
precede the reference word, based on the number of occurrences of
being the word to precede the reference word in the text,
if interactive is False. Chart is sorted in descending order
based on this count. Otherwise, if interactive is True, displays
based on this count. Otherwise, if interactive is True, display
two columns that allows the user to select the reference word
from the left column; the right column lists the likely previous
words.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment