Im sure this is a fairly common question but I didn't see
it in the mailing list archives.
Im using MySQL and when I first create a JDBCWordsDataSource it
creates a table 'word_probability'. But when I run it after that
I get the following exception:
net.sf.classifier4J.bayesian.WordsDataSourceException: Problem creating
table
at
net.sf.classifier4J.bayesian.JDBCWordsDataSource.createTable(JDBCWordsDa
taSource.java:252)
at
net.sf.classifier4J.bayesian.JDBCWordsDataSource.<init>(JDBCWordsDataSou
rce.java:100)
at
com.li.sentinel.agent.classify.Classifier.main(Classifier.java:32)
Caused by: java.sql.SQLException: General error, message from server:
"Table 'word_probability' already exists"
...
Even though the table exists it looks like the following line
of code isn't finding the table? In JDBCWordsDataSource.java(233):
ResultSet rs = dbm.getTables(null, null, "WORD_PROBABILITY", null);
I get an empty resultset apparently. This is when using 0.5. Any
ideas?
Thanks,
- Brent
|