ABB.Swum.WordData.PositionalFrequencies.GetVerbProbability C# (CSharp) Метод

GetVerbProbability() публичный метод

Calculates the probability that the given word is a verb, based on its positional frequencies.
public GetVerbProbability ( string word ) : double
word string The word.
Результат double
        public double GetVerbProbability(string word)
        {
            double prob = 0d;
            int total = GetTotalFrequency(word);
            if (total > 0)
            {
                prob = 100d * (GetFirstFrequency(word) + GetOnlyFrequency(word)) / total;
            }
            return prob;
        }