AnantLabs / dkpro-tc

Automatically exported from code.google.com/p/dkpro-tc
Other
0 stars 0 forks source link

Regression Train Test does not work for FM_UNIT #191

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Cross-validation works on my experiment setup, but TrainTest fails with the 
exception below. The setup is comparable to the RegressionDemo, but the feature 
mode is unit classification. What can I do to avoid the exception? 

Exception in thread "main" 
de.tudarmstadt.ukp.dkpro.lab.engine.ExecutionException: 
java.lang.NoSuchMethodError: 
de.tudarmstadt.ukp.dkpro.tc.core.task.ValidityCheckTask.setTesting(Z)V
    at de.tudarmstadt.ukp.dkpro.lab.engine.impl.ExecutableTaskEngine.run(ExecutableTaskEngine.java:68)
    at de.tudarmstadt.ukp.dkpro.lab.engine.impl.DefaultTaskExecutionService.run(DefaultTaskExecutionService.java:48)
    at de.tudarmstadt.ukp.dkpro.lab.Lab.run(Lab.java:97)
    at ctestDifficulty.DifficultyPrediction.runTrainTest(DifficultyPrediction.java:275)
    at ctestDifficulty.DifficultyPrediction.main(DifficultyPrediction.java:98)
Caused by: java.lang.NoSuchMethodError: 
de.tudarmstadt.ukp.dkpro.tc.core.task.ValidityCheckTask.setTesting(Z)V
    at de.tudarmstadt.ukp.dkpro.tc.ml.BatchTaskTrainTest.init(BatchTaskTrainTest.java:115)
    at de.tudarmstadt.ukp.dkpro.tc.ml.BatchTaskTrainTest.execute(BatchTaskTrainTest.java:87)
    at de.tudarmstadt.ukp.dkpro.lab.engine.impl.ExecutableTaskEngine.run(ExecutableTaskEngine.java:55)

Original issue reported on code.google.com by lisa.bei...@gmail.com on 9 Oct 2014 at 2:53

GoogleCodeExporter commented 9 years ago
"No such method" looks like a dependency version problem.
Do you (accidentally) mix different TC versions?

Original comment by torsten....@gmail.com on 9 Oct 2014 at 3:08

GoogleCodeExporter commented 9 years ago
Good point, I didn't notice that the RegressionDemo already uses 
0.7.0-SNAPSHOT. If I update everything to 0.7.0-SNAPSHOT it works. Thanks.

Original comment by lisa.bei...@gmail.com on 9 Oct 2014 at 3:27

GoogleCodeExporter commented 9 years ago
Closing.

Original comment by daxenber...@gmail.com on 9 Oct 2014 at 3:53