Class DictionaryToDatabaseWithUsageCount
java.lang.Object
net.didion.jwnl.utilities.DictionaryToDatabaseWithUsageCount
DictionaryToDatabase is used to transfer a WordNet file database into an actual
database structure.
- Author:
- brett
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a new DictionaryToDatabase with a database connection. -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateTables(String scriptFilePath) Create the database tables.voidInserts the data into the database.static voidRun the program, requires 4 arguments.
-
Constructor Details
-
DictionaryToDatabaseWithUsageCount
Create a new DictionaryToDatabase with a database connection. JWNL already initialized.- Parameters:
conn- - the database connection
-
-
Method Details
-
main
Run the program, requires 4 arguments. See DictionaryToDatabase.txt for more documentation.- Parameters:
args-
-
createTables
Create the database tables.- Parameters:
scriptFilePath- - the sql script filename- Throws:
IOExceptionSQLException
-
insertData
-