Skip to content

Commit

Permalink
Small fixes to documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
rlvoyer committed Mar 13, 2015
1 parent 6c54aaa commit d54f416
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions word_frequency.py
Expand Up @@ -2,14 +2,14 @@

def get_word_frequency(docs):
"""
Returns the frequency of occorance of words in an SArray of documents
Returns the frequency of occurrence of words in an SArray of documents
Args:
docs: An SArray (of dtype str) of documents
Returns:
An SFrame with the following columns:
'word' : Word used
'count' : Number of times the word occured in all documents.
'frequency' : Average number of occurances of the word in a document.
'frequency' : Relative frequency of the word in the set of input documents.
"""

# Use the count_words function to count the number of words.
Expand Down

0 comments on commit d54f416

Please sign in to comment.