Friday, May 17, 2024
 Popular · Latest · Hot · Upcoming
31
rated 0 times [  36] [ 5]  / answers: 1 / hits: 15137  / 13 Years ago, tue, april 12, 2011, 12:00:00

HI I am looking for a library that'll remove stop words from text in Javascript, my end goal is to calculate tf-idf and then convert the given document into vector space, and all of this is Javascript.
Can anyone point me to a library that'll help me do that.Just a library to remove the stop words would also be great.


More From » analytics

 Answers
23

I think there are no libraries for such thing, you need to download those words from https://www.ranks.nl/stopwords.


And then do replace the words as follows:


text = text.replace(stopword, "")

[#92792] Monday, April 11, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
andrea

Total Points: 445
Total Questions: 95
Total Answers: 103

Location: Tonga
Member since Tue, Nov 30, 2021
3 Years ago
;