remove stop words from text C#

后端 未结 6 1987
忘掉有多难
忘掉有多难 2020-12-21 15:41

i want to remove an array of stop words from input string, and I have the following procedure

string[] arrToCheck = new string[] { \"try \", \"yourself\", \         


        
6条回答
  •  感动是毒
    2020-12-21 16:10

    String.Join(" ",input.
              Split(' ').Where(w=>stop.Where(sW=>sW==w).
                       FirstOrDefault()==null).ToArray());
    

提交回复
热议问题