#52 Batch learning throws exception when evaluating

CVS_head
closed-fixed
Plugins (41)
5
2009-05-22
2007-08-13
No

Full trace below. The line throwing the exception says:

if(toProcess.getDataStore()!= null) {
corpus.getDataStore().sync(corpus);
Factory.deleteResource(toProcess);
}

where toProcess is a document. But corpus is transient. Was the code meant to sync the document toProcess, saving changes back to the datastore? And if so, aren't there implications for saving annotations back to the datastore in an evaluation setting?

thanks
Angus

java.lang.NullPointerException
at gate.learning.LightWeightLearningApi.applyModelInJava(LightWeightLearningApi.java:560)
at gate.learning.EvaluationBasedOnDocs.oneRun(EvaluationBasedOnDocs.java:375)
at gate.learning.EvaluationBasedOnDocs.kfoldEval(EvaluationBasedOnDocs.java:161)
at gate.learning.EvaluationBasedOnDocs.evaluation(EvaluationBasedOnDocs.java:88)
at gate.learning.LearningAPIMain.execute(LearningAPIMain.java:452)
at gate.creole.SerialController.runComponent(SerialController.java:177)
at gate.creole.SerialController.executeImpl(SerialController.java:136)
at gate.creole.SerialAnalyserController.executeImpl(SerialAnalyserController.java:67)
at gate.creole.AbstractController.execute(AbstractController.java:42)
at gate.gui.SerialControllerEditor$RunAction$1.run(SerialControllerEditor.java:1253)
at java.lang.Thread.run(Thread.java:595)

Discussion

  • Valentin Tablan

    Valentin Tablan - 2009-05-18

    Angus, is this bug still present? I see it was created in 2007, and since then the ML implementation was updated several times. Thanks.

     
  • Valentin Tablan

    Valentin Tablan - 2009-05-22

    This has been fixed since reported.

     
  • Valentin Tablan

    Valentin Tablan - 2009-05-22
    • assigned_to: nobody --> yaoyongli
    • status: open --> closed-fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks