tika-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Allison (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (TIKA-2038) A more accurate facility for detecting Charset Encoding of HTML documents
Date Mon, 01 Aug 2016 12:52:21 GMT

     [ https://issues.apache.org/jira/browse/TIKA-2038?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Tim Allison updated TIKA-2038:
    Attachment: iust_encodings.zip

This includes the encodings as detected by: 1) Tika default, 2) HTML alone, 3) UniversalCharDet
alone, 4) ICU4J alone

There are only 77 files for which the HTML detector is not able to extract an encoding in
this set.  If we make the assumption that the html meta-header is most often correct, and
use that as "ground truth" (with caveats!), we see the following when comparing to the other
two detectors.

Comparisons of UniversalCharDet to the HTMLDetector:

Comparisons of ICU4J to the HTMLDetector:

> A more accurate facility for detecting Charset Encoding of HTML documents
> -------------------------------------------------------------------------
>                 Key: TIKA-2038
>                 URL: https://issues.apache.org/jira/browse/TIKA-2038
>             Project: Tika
>          Issue Type: Improvement
>          Components: core, detector
>            Reporter: Shabanali Faghani
>            Priority: Minor
>         Attachments: iust_encodings.zip, tika_1_14-SNAPSHOT_encoding_detector.zip
> Currently, Tika uses icu4j for detecting charset encoding of HTML documents as well as
the other naturally text documents. But the accuracy of encoding detector tools, including
icu4j, in dealing with the HTML documents is meaningfully less than from which the other text
documents. Hence, in our project I developed a library that works pretty well for HTML documents,
which is available here: https://github.com/shabanali-faghani/IUST-HTMLCharDet
> Since Tika is widely used with and within some of other Apache stuffs such as Nutch,
Lucene, Solr, etc. and these projects are strongly in connection with the HTML documents,
it seems that having such an facility in Tika also will help them to become more accurate.

This message was sent by Atlassian JIRA

View raw message