none
Find the probability of multiple words in a text .net RRS feed

  • Question

  • Hi,

    C#.net

    I have a list of words. I want to find how many words are there in a given string and also find the % of words used in  a text. For eg list of words = {"aa", "bb" ,"test", "testing"}.

    Given text  = "this is a test document"

    when searching it is found that the word "test" is there in the given text. so the probability is around 25%. How can i implment the logic in .net?

    Please help me.

    thanks

    Nikhil




    Friday, October 5, 2012 11:39 AM

Answers