Skip to content

Commit 4cd803a

Browse files
committed
Tests passing locally
1 parent a0bef59 commit 4cd803a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

machine_learning/word_frequency_functions.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ def document_frequency(term: str, corpus: str) -> int:
7373
@returns : the number of documents in the corpus that contain the term you are
7474
searching for and the number of documents in the corpus
7575
@examples :
76-
>>> document_frequency("first", "This is the first document in the corpus.\\nThIs is\
77-
the second document in the corpus.\\nTHIS is \
76+
>>> document_frequency("first", "This is the first document in the corpus.\\nThIs\
77+
is the second document in the corpus.\\nTHIS is \
7878
the third document in the corpus.")
7979
(1, 3)
8080
"""
@@ -120,7 +120,7 @@ def tf_idf(tf : int, idf: int) -> float:
120120
frequency : tf-idf = TF * IDF
121121
@params : tf, the term frequency, and idf, the inverse document
122122
frequency
123-
@examples :
123+
@examples :
124124
>>> tf_idf(2, 0.477)
125125
0.954
126126
"""

0 commit comments

Comments
 (0)