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

Training name finder only with names fails

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: tools-1.5.0-sourceforge
    • Fix Version/s: tools-1.5.1-incubating
    • Component/s: Name Finder
    • Labels:
      None

      Description

      A. Allen:
      "I followed the instructions
      in the wiki and used pieces of the sample code, but keep getting the
      following:

      Indexing events using cutoff of 5

      Computing event counts... done. 29376 events
      Indexing... done.
      Sorting and merging events... done. Reduced 29376 events to 8313.
      Done indexing.
      Incorporating indexed data for training...
      done.
      Number of Event Tokens: 8313
      Number of Outcomes: 1
      Number of Predicates: 11869
      ...done.
      Computing model parameters...
      Performing 100 iterations.
      1: .. loglikelihood=0.0 1.0
      2: .. loglikelihood=0.0 1.0
      Exception in thread "main" java.lang.IllegalArgumentException: Model not
      compatible with name finder!
      at
      opennlp.tools.namefind.TokenNameFinderModel.<init>(TokenNameFinderModel.java:50)
      at opennlp.tools.namefind.NameFinderME.train(NameFinderME.java:350)
      at opennlp.tools.namefind.NameFinderME.train(NameFinderME.java:356)
      at NameTrainer.main(NameTrainer.java:21)

      My training data looks like this:
      <START:person>Neil Abercrombie<END>
      <START:person>Anibal Acevedo-Vila<END>
      <START:person>Gary Ackerman<END>
      <START:person>Robert Aderholt<END>
      <START:person>Daniel Akaka<END>
      <START:person>Todd Akin<END>
      <START:person>Lamar Alexander<END>
      <START:person>Rodney Alexander<END>
      "

        Attachments

          Activity

            People

            • Assignee:
              colen William Colen
              Reporter:
              joern Jörn Kottmann

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment