Skip to content

Commit

Permalink
Issue#634 (#748)
Browse files Browse the repository at this point in the history
Repairs #634
  • Loading branch information
Hugo-ter-Doest authored Jul 2, 2024
1 parent cfc847f commit 9c96754
Show file tree
Hide file tree
Showing 6 changed files with 1,164 additions and 89 deletions.
2 changes: 1 addition & 1 deletion lib/natural/tfidf/tfidf.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ class TfIdf {
term,
tf: TfIdf.tf(term, _this.documents[d]),
idf: _this.idf(term),
tfidf: _this.tfidf(term, d)
tfidf: _this.tfidf([term], d)
})
}
}
Expand Down
Loading

0 comments on commit 9c96754

Please sign in to comment.