laito / cleartk

Automatically exported from code.google.com/p/cleartk
0 stars 0 forks source link

Neither of the Document classifications are working. #394

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Install clerk using Eclipse as per the guidelines provided in User setup

What is the expected output?

The first step is to train using Usenet data

What do you see instead?
It can't find the JCas type
Caused by: org.apache.uima.cas.CASRuntimeException: JCas type 
"org.cleartk.examples.type.UsenetDocument" used in Java code,  but was not 
declared in the XML type descriptor

What version of the product are you using? On what operating system?

The latest on MAC OSX; Java version 1.7.x -- all other example programs are 
working fine in the same setup.

Original issue reported on code.google.com by shailend...@gmail.com on 26 Nov 2013 at 4:22

GoogleCodeExporter commented 9 years ago

Original comment by steven.b...@gmail.com on 26 Nov 2013 at 5:12

GoogleCodeExporter commented 9 years ago
I have verified that this is indeed the behavior.  It appears that it is a 
simple matter of moving the file src/main/resources/META-INF/org.uimafit to 
src/main/resources/META-INF/org.apache.uima.fit so that the type system is 
correctly loaded.  It appears that the basic document classifier is now 
working.  I will verify the other and then check in a fix.

Thank you for reporting this!  Apologies for the delayed fix.

Original comment by phi...@ogren.info on 12 Apr 2014 at 6:13

GoogleCodeExporter commented 9 years ago
I added a println to the end of BasicDocumentClassificationAnnotator.process so 
that the user sees something.  

Original comment by phi...@ogren.info on 12 Apr 2014 at 6:32