public boolean process(final TextDocument doc) throws BoilerpipeProcessingException { boolean changes = false; for (TextBlock tb : doc.getTextBlocks()) { if (!tb.isContent()) { continue; } if (getNumFullTextWords(tb) < minWords) { tb.setIsContent(false); changes = true; } } return changes; } }
public boolean process(final TextDocument doc) throws BoilerpipeProcessingException { boolean changes = false; for (TextBlock tb : doc.getTextBlocks()) { if (!tb.isContent()) { continue; } if (getNumFullTextWords(tb) < minWords) { tb.setIsContent(false); changes = true; } } return changes; } }
public boolean process(final TextDocument doc) throws BoilerpipeProcessingException { boolean changes = false; for (TextBlock tb : doc.getTextBlocks()) { if (!tb.isContent()) { continue; } if (getNumFullTextWords(tb) < minWords) { tb.setIsContent(false); changes = true; } } return changes; } }
public boolean process(final TextDocument doc) throws BoilerpipeProcessingException { boolean changes = false; for (TextBlock tb : doc.getTextBlocks()) { if (!tb.isContent()) { continue; } if (getNumFullTextWords(tb) < minWords) { tb.setIsContent(false); changes = true; } } return changes; } }