Nutch
  1. Nutch
  2. NUTCH-794

Language Identification must use check the parse metadata for language values

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.1
    • Component/s: parser
    • Labels:
      None

      Description

      The following HTML document :

      <html lang="fi"><head>document 1 title</head><body>jotain suomeksi</body></html>

      is rendered as the following xhtml by Tika :

      <?xml version="1.0" encoding="UTF-8"?><html xmlns="http://www.w3.org/1999/xhtml"><head><title/></head><body>document 1 titlejotain suomeksi</body></html>

      with the lang attribute getting lost. The lang is not stored in the metadata either.

      I will open an issue on Tika and modify TestHTMLLanguageParser so that the tests don't break anymore

      1. NUTCH-794.patch
        2 kB
        Julien Nioche

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Julien Nioche
              Reporter:
              Julien Nioche
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development