Package Ndb
source code
This module provides code to work with html files from NDB.
http://ndbserver.rutgers.edu/NDB/structure-finder/ndb/index.html
Classes: Record Holds NDB sequence data. NdbParser
Parses NDB sequence data into a Record object.
The algorithm is based on a state machine because the record has
multiple sections and the handling of tags varies depending on the
section. Citations have their own state machine.
|
handle = open('PR0004.htm')
|
|
undo_handle = File.UndoHandle(handle)
|
|
ndb_parser = NdbParser()
|
|
record = ndb_parser.parse(handle)
|
|
xml_support = 1
|