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

          Lewis John McGibbney made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Chris A. Mattmann made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Julien Nioche made changes -
          Component/s parser [ 12313426 ]
          Julien Nioche made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Julien Nioche made changes -
          Summary Tika parser does identify lang attributes on html tag Language Identification must use check the parse metadata for language values
          Julien Nioche made changes -
          Attachment NUTCH-794.patch [ 12435963 ]
          Julien Nioche made changes -
          Summary Tika parser does not keep attributes on html tag Tika parser does identify lang attributes on html tag
          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.

          I will open an issue on Tika and modify TestHTMLLanguageParser so that the tests don't break anymore
          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
          Julien Nioche made changes -
          Field Original Value New Value
          Link This issue is blocked by TIKA-379 [ TIKA-379 ]
          Julien Nioche created 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