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

Code in tools/parser throws some NullPointerExceptions when dealing with poor training data

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • tools-1.5.3
    • 1.6.0
    • Parser
    • None
    • Windows 7 + java 1.7.0_21

    Description

      I was trying to train the Treebank Parser with some new data.

      Truth to be told, the data was in poor format. Specifically, instead of "(RRB RRB)", it contained "( RRB)".
      The same for LRB constructions.

      Due to this input data, the parsing code was throwing some NullPointerException errors.

      The fixes consist in some supplementary "if()"s, to safeguard against null pointers.

      Fixes are in 3 files, attached as diff. The diff was created by svn, run in the opennlp-tool/.../parser directory.

      Attachments

        1. Parse.java.patch
          1 kB
          Ioan Barbulescu

        Activity

          People

            Unassigned Unassigned
            ibarbulescu Ioan Barbulescu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: