nutch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lewismc <...@git.apache.org>
Subject [GitHub] nutch pull request: Add the boilerpipe parsing adapted from NUTCH-...
Date Sat, 27 Feb 2016 11:25:46 GMT
Github user lewismc commented on a diff in the pull request:

    https://github.com/apache/nutch/pull/92#discussion_r54332201
  
    --- Diff: src/plugin/parse-tika/src/java/org/apache/nutch/parse/tika/TikaParser.java ---
    @@ -109,7 +114,18 @@ public Parse getParse(String url, WebPage page) {
         HTMLDocumentImpl doc = new HTMLDocumentImpl();
         doc.setErrorChecking(false);
         DocumentFragment root = doc.createDocumentFragment();
    -    DOMBuilder domhandler = new DOMBuilder(doc, root);
    +   // DOMBuilder domhandler = new DOMBuilder(doc, root);
    +    ContentHandler domHandler;
    +    // Check whether to use Tika's BoilerplateContentHandler
    +    if (useBoilerpipe) {
    +        LOG.debug("Using Tikas's Boilerpipe with Extractor: " + boilerpipeExtractorName);
    --- End diff --
    
    Can also use more efficient slf4j convention
    logger.debug("The entry is {}.", entry);


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message