grblc.search.gcn.parser package

Submodules

grblc.search.gcn.parser.combine module

grblc.search.gcn.parser.combine.get_final_txt(grb, tables, sentences, output_path)[source]

Combine the data from [grb]_final_sentences.txt and [grb]_final_tables.txt. If a piece of data in tables and another piece in sentecnes are originially from the same GCN. Put them in the same GCN in [grb]_final.txt.

grblc.search.gcn.parser.constants module

grblc.search.gcn.parser.sentence module

grblc.search.gcn.parser.sentence.check_sentence(grb_listing)[source]

Check if there are sentences that include possible data points in grb_listing.

grblc.search.gcn.parser.sentence.final_sentences_to_csv(grb, output_path)[source]
grblc.search.gcn.parser.sentence.get_final_sentences_txt(grb, output_path)[source]

Fetch the data from [grb]_sentences.txt and select only the paragraphs with the possible data points identified by the regex, sentence_check.

grblc.search.gcn.parser.table module

grblc.search.gcn.parser.table.check_table(grb_listing)[source]

Return if there is any tables in grb_listing.

grblc.search.gcn.parser.table.final_tables_to_csv(grb, output_path='output/')[source]
grblc.search.gcn.parser.table.get_final_tables_txt(grb, output_path)[source]

Fetch the data from the generated text file, *_table.txt. Store gcn numbers, dates, and tables and write the data accordingly into *_final.txt.

Module contents