Hey there. I have got the API yesterday and I have integrated it to
GATE. At first I had the same problem mentioned here, which I could
solve by adding
<JAR>lib/textclassification-1.1.jar</JAR> to each resource in the
Creole file.
This was now solved. But whenever I try to run the creator I get some
errors I couldn't figure out how to solve
There are no annotations of type Sentence available in document!
gate.creole.ExecutionException: java.lang.Exception: There must be at
least two different class values in the training corpus
at
com.digitalpebble.classification.gate.TextClassificationModelCreatorPR.execute(TextClassificationModelCreatorPR.java:
185)
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:619)
Caused by: java.lang.Exception: There must be at least two different
class values in the training corpus
at
com.digitalpebble.classification.Learner.generateVectorFile(Learner.java:
104)
at com.digitalpebble.classification.Learner.learn(Learner.java:140)
at com.digitalpebble.classification.Learner.learn(Learner.java:91)
at
com.digitalpebble.classification.gate.TextClassificationModelCreatorPR.execute(TextClassificationModelCreatorPR.java:
183)
... 6 more
Caused by:
java.lang.Exception: There must be at least two different class values
in the training corpus
at
com.digitalpebble.classification.Learner.generateVectorFile(Learner.java:
104)
at com.digitalpebble.classification.Learner.learn(Learner.java:140)
at com.digitalpebble.classification.Learner.learn(Learner.java:91)
at
com.digitalpebble.classification.gate.TextClassificationModelCreatorPR.execute(TextClassificationModelCreatorPR.java:
183)
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:619)
I have tried changing the paraeters, but still no success. What could
be wrong?