Uploaded image for project: 'OpenNLP'
  1. OpenNLP
  2. OPENNLP-665

remove parser.lang.en.HeadRules specific casting for Parser

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • tools-1.5.3
    • 1.6.0
    • Parser
    • None

    Description

      To train a parser.chunking.Parser, both from the CLI or using the API, the headRule class used is always the parser.lang.en.HeadRules class. This class performs two functions:

      1. It hardcodes the headrules for Noun Phrases.
      2. It reads a headRules file to load the headRules for the rest of the constituents.

      While trying to train parsers for other languages, it is now only possible to train with the lang.en.HeadRules class.

      Attachments

        1. trainParser.txt
          1 kB
          Rodrigo Agerri
        2. es-head-rules
          1 kB
          Rodrigo Agerri
        3. AncoraSpanishHeadRules.java
          8 kB
          Rodrigo Agerri

        Activity

          People

            ragerri Rodrigo Agerri
            ragerri Rodrigo Agerri
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: