See:
- on/tools/config.example
- on/tools/create_onfs.py
- on/tools/files_from_db.py
- on/tools/init_db.py
- on/tools/iterate-over-stuff.py
This code shows how to load ontonotes data to the database. The database needs to have already been initialized and the sense inventories and frames need to have already been loaded. See on.tools.init_db to see how to do that.
This code does two things: initializes the database (creating the tables) and optionally loads the sense inventories and frame files. This needs to happen before data can be loaded to the database with the on.tools.load_to_db command.
For usage information, run this command with no arguments:
$ python init_db.py