mysql.Driver.) The database where your target data resides is called some_database. Secondly, your Java code needs to look like this to load the data from the database: import JdbcURL=jdbc:mysql://localhost:3306/some_database Your props file must contain the following lines: jdbcDriver=.mysql.Driver Since you're only reading, you can use the default user nobody without a password. Instances data = query.retrieveInstances() You can declare that your data set is sparse InstanceQuery query = new InstanceQuery() #Java weka jar code# * Don't forget to add the JDBC driver to your CLASSPATH. * For MS Access, you must use the JDBC-ODBC-bridge that is part of a JDK. The Windows databases article explains how to do this. * InstanceQuery automatically converts VARCHAR database columns to NOMINAL attributes, and long TEXT database columns to STRING attributes. So if you use InstanceQuery to do text mining against text that appears in a VARCHAR column, Weka will regard such text as nominal values. Thus it will fail to tokenize and mine that text.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |