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);
}