NBoilerpipe.Document.TextBlock.GetNumWords C# (CSharp) Method

GetNumWords() public method

public GetNumWords ( ) : int
return int
        public virtual int GetNumWords()
        {
            return numWords;
        }

Usage Example

        protected internal virtual bool Classify(TextBlock prev, TextBlock curr, TextBlock
			 next)
        {
            bool isContent;
            if (curr.GetLinkDensity() <= 0.333333)
            {
                if (prev.GetLinkDensity() <= 0.555556)
                {
                    if (curr.GetNumWords() <= 16)
                    {
                        if (next.GetNumWords() <= 15)
                        {
                            if (prev.GetNumWords() <= 4)
                            {
                                isContent = false;
                            }
                            else
                            {
                                isContent = true;
                            }
                        }
                        else
                        {
                            isContent = true;
                        }
                    }
                    else
                    {
                        isContent = true;
                    }
                }
                else
                {
                    if (curr.GetNumWords() <= 40)
                    {
                        if (next.GetNumWords() <= 17)
                        {
                            isContent = false;
                        }
                        else
                        {
                            isContent = true;
                        }
                    }
                    else
                    {
                        isContent = true;
                    }
                }
            }
            else
            {
                isContent = false;
            }
            return curr.SetIsContent(isContent);
        }
All Usage Examples Of NBoilerpipe.Document.TextBlock::GetNumWords