Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
0
Reply
stop words removal and rooting
ahmad sawalha
Jul 14 2015 7:23 AM
531
Reply
I have thousands of files, I need to remove all stop words, and get each words' Root. I have this code, but it is very slow, how to speed up my code to get this on the fly? thanks
for (int i = 0; i < Terms.Count(); i++)
{
Terms[i] = RemovePuctuations(Terms[i]);
Terms[i] = RemoveDiacrities(Terms[i]);
if (!IsArabicWord(Terms[i]))
{
Terms[i] = " ";
continue;
}
stemmer.initComponents();
Terms[i] = stemmer.stemWord(Terms[i]);
if (StopWordsBLL.StopWords.Contains(Terms[i]))
Terms[i] = " ";
}
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
0
)
Next Recommended Forum
How to i post headers and xml body to webservice in c#
How to add condition in regex.