()
| 4 | import pickle |
| 5 | |
| 6 | def main(): |
| 7 | filename = "JVET-T2001-v2.docx" |
| 8 | print("Opening file " + filename) |
| 9 | document = Document(filename) |
| 10 | |
| 11 | variableDescriptions = parseDocForVariableDescriptions(document) |
| 12 | |
| 13 | print(f"Parsed {len(variableDescriptions)} variable descriptions: ") |
| 14 | |
| 15 | # From where to where to parse. The last entry will not be included. |
| 16 | |
| 17 | parsedTables = parseDocumentTables(document, variableDescriptions) |
| 18 | print ("Read {} classes".format(len(parsedTables))) |
| 19 | |
| 20 | # Dump everything to a file (debugging) |
| 21 | pickle.dump( parsedTables, open( "tempPiclkle.p", "wb" ) ) |
| 22 | |
| 23 | if __name__ == "__main__": |
| 24 | main() |
no test coverage detected